Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow saving to GraphML with mixed edge types #58

Open
nicolaspayette opened this issue Sep 5, 2012 · 0 comments
Open

Allow saving to GraphML with mixed edge types #58

nicolaspayette opened this issue Sep 5, 2012 · 0 comments

Comments

@nicolaspayette
Copy link
Member

Right now, the file is produced with <graph edgedefault="directed"> or <graph edgedefault="undirected">, but the directed attribute is not set for individual edges.

If we have a mixed graph, it is not recognized as such and <graph edgedefault="undirected">.

When Jung saves to GraphML, it queries the EdgeType getEdgeType(E edge); method declared in HyperGraph. The current implementation is inherited from AbstractTypedGraph, which returns the same edge type for the whole graph.

NetLogo graphs are currently instantiated as either directed or undirected graphs. We would need to create a new class (MixedGraph?) which would inherit from our graph trait and implement getEdgeType on a 'per edge' basis.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant