What if you build a graph engine then encode those edges into its own embedding space?

Nerdsnipe?