[Lemon-user] Convert ListDigraph into StaticDigraph

bugi at gmx.info bugi at gmx.info
Fri Aug 3 19:26:18 CEST 2012


Hi LEMON users,

basically the subject already says it all. Does LEMON has a function to 
create a StaticDigraph out of a ListDigraph?
The goal to achieve is to use the flexibility of ListDigraph (add and 
remove graph elements) and later the efficiency of StaticDigraph.
Is this approach useful/efficient for large graphs? My current 
workaround is to go through all arcs, and finally generate a 
StaticDigraph using "build(int n, ArcListIterator begin, ArcListIterator 
end)". How can I use "build(const Digraph& digraph, NodeRefMap& nodeRef, 
ArcRefMap& arcRef)" for my purpose?

Thanks a lot!
Best regards



More information about the Lemon-user mailing list