Re: [jgrapht-users] add edge to directed graph in both directions
Brought to you by:
barak_naveh,
perfecthash
From: H.N. de R. <hnr...@gr...> - 2015-06-26 07:25:35
|
On Tue, Jun 23, 2015 at 01:27:23PM -0400, Joris Kinable wrote: > Hm, I remember seeing that thread. The two solutions proposed were: > > 1. Create 2 graphs, a directed and an undirected graph, and create a > GraphUnion from these two graphs. This approach has 2 major disadvantages: > > 2. To represent an undirected edge e=(i,j) in a directed graph, create 2 > edge objects, say e1 and e2, which contain the same information, and add > > So far, neither of these approaches seem desirable. Any remarks on this? What is your actual goal? Create a mixed graph without going through the hassle of implementing a MixedGraph class, or using the same object for two edges in a graph, as the original post said? Ernst -- Information System on Graph Classes and their Inclusions (ISGCI) http://www.graphclasses.org |