Hi everyone, I am trying to draw a graph which contains nets with more than 2 nodes. At the moment in the program I am using add_edge() to add the edges to the graph. I give the 2 nodes and also a custom parameter of the net name that this edge belongs to. This solution seems to be a long way of doing things specially when I need to access all the nodes of a particular net. For this I end up running two FOR loops checking each edge to see the net name it belongs to and then accessing the nodes belonging to that edge. Does anyone know of how I can have more than 2 nodes attached to an edge (or net)? Thanks in advance Meth ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs
Hello, If I understand correctly your problem description, you have a big graph containing several subgraphs (your nets) that can share edges. So why not using the subgraph class? http://www.boost.org/libs/graph/doc/subgraph.html
Does anyone know of how I can have more than 2 nodes attached to an edge (or net)?
I think there is some confusion in the definition of an edge. An edge connects two nodes and can be directed or not, that's all. Then, of course, several graphs can contain the same edge. Hope it helps. Cheers, ~Benoît
participants (2)
-
Beno?ît Dagon
-
Meththa