Skip to content

Conversation

@ziodave
Copy link

@ziodave ziodave commented Feb 20, 2018

This is a proposal to add support for GraphML-Attributes in the GraphMLWriter.

import com.google.common.graph.Network;
import edu.uci.ics.jung.io.graphml.AttributeType;

import java.beans.XMLEncoder;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ziodave It looks to me that java.beans.XMLEncoder is never used, so this import should be removed if possible.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ta!


if (null != ds.attributeName)
bw.write(" attr.name=\"" + ds.attributeName.replace("\"", """) + "\"");
if (null != ds.attributeType) bw.write(" attr.type=\"" + ds.attributeType.getValue() + "\"");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that these if statements are lacking braces. Please run mvn fmt:format to fix this and any other formatting errors I may have missed. :)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uhm, the formatter isn't adding the braces, I'll add them.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, very sorry, I thought it did! Thank your very much for adding them anyway. :)

@jbduncan
Copy link
Contributor

I'll defer to @jrtom now for evaluating the meat of this PR and the corresponding issue. :)

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

Successfully merging this pull request may close these issues.

2 participants