Best way to create a weighted edge graph

@MichelDiz, sorry, the query there works for me… but it’s the only query I’ve managed to get working!

I was trying to figure out the next query, the "give me to.text and count from words where from.text is “whatever”. I’ve been trying things like:

query GetNextWords {
  queryTransition(filter: {from: {text: {eq: "the"}}})
    to {
      text
    }
    count
  }
}