GraphStream Users

Archives de la liste Aide


Re: MultiGraph and Node::getEdgeBetween(String id)


Chronologique Discussions 
  • From: guilhelm savin <guilhelm.savin AT gmail.com>
  • To: "graphstream-users AT litislab.fr" <graphstream-users AT litislab.fr>, simone.davico AT usi.ch
  • Subject: Re: MultiGraph and Node::getEdgeBetween(String id)
  • Date: Tue, 1 Oct 2013 16:09:06 +0200

Graph g = new MultiGraph("g");
...
MultiNode n = g.getNode("id");
for (Edge e: n.getEdgeSetBetween("other_id") {
  ....
}


Regards
Guilhelm


2013/10/1 <simone.davico AT usi.ch>
Hello everyone,

I am a Swiss Bachelor Informatics Student developing a personal project using
GraphStream.

The library is wonderful, but I have a doubt: as I may have more than one edge
between two nodes, I am using a MultiGraph.

Anyway, there is no method to get all edges between two Nodes. I just found
Node::getEdgeBetween(String id) which returns an Edge, but I would like
something like Node::getAllEdgesBetween(String id).

Does such a method exist? Or should I try a different approach to get all edges
between two nodes?

Thank you very much for your help,

Simone



--
Guilhelm Savin
PhD Student of Computer Science



Archives gérées par MHonArc 2.6.16.

Top of page