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

GraphML-Attributes support in GraphMLWriter #199

Open
ziodave opened this issue Feb 20, 2018 · 0 comments
Open

GraphML-Attributes support in GraphMLWriter #199

ziodave opened this issue Feb 20, 2018 · 0 comments

Comments

@ziodave
Copy link

ziodave commented Feb 20, 2018

Would it be possible to support GraphML-Attributes in GraphMLWriter?

GraphMLMetadata<T> could be have two new fields:

  • String name
  • Enum type

where the type Enum can be boolean, int, long, float, double, or string.

A new constructor could allow to set the above fields, otherwise null by default:

public GraphMLMetadata(String description, String default_value, Function<T, String> function, String name, Enum type)

The GraphMLWriter.writeKeySpecification method can be extended to support the 2 new fields.

ziodave added a commit to ziodave/jung that referenced this issue Feb 20, 2018
ziodave added a commit to ziodave/jung that referenced this issue Feb 20, 2018
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