Guava: How can I get nodes by node's property

Created on 7 May 2019  路  3Comments  路  Source: google/guava

Can i get nodes by providing node property?

status=obsolete

Most helpful comment

Which API are you referring to? I'm guessing perhaps common.graph but your question does not make it clear.

If you are talking about common.graph, then it does not support retrieving nodes according to a property of the node; you would need to provide your own data structure to do that.

All 3 comments

Which API are you referring to? I'm guessing perhaps common.graph but your question does not make it clear.

If you are talking about common.graph, then it does not support retrieving nodes according to a property of the node; you would need to provide your own data structure to do that.

@terence1984 If you're indeed using one of the common.graph classes that @jrtom mentioned, e.g. Graph or Network, then you might find these two StackOverflow questions useful, both of which I answered:

  1. https://stackoverflow.com/questions/47337142/simple-example-of-guava-valuegraph
  2. https://stackoverflow.com/questions/50396569/get-a-node-by-id-with-guava-graph

I hope this helps. :)

Let's use StackOverflow for questions like this.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JWT007 picture JWT007  路  4Comments

edwardlee03 picture edwardlee03  路  4Comments

PhilippWendler picture PhilippWendler  路  4Comments

Hanmac picture Hanmac  路  3Comments

gissuebot picture gissuebot  路  5Comments