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

External Id causing error #35

Open
lucaspg96 opened this issue Mar 7, 2017 · 0 comments
Open

External Id causing error #35

lucaspg96 opened this issue Mar 7, 2017 · 0 comments

Comments

@lucaspg96
Copy link
Member

lucaspg96 commented Mar 7, 2017

Setting the external id in the Node or Edge constructors and adding them to the graph causes an error.
The following code gives an error:
...

	GraphBounds graph = new GraphImpl(Configuration.USER_HOME + "/graphast/example");

	Edge e;
	NodeImpl v;

	v = new NodeImpl(5l, 1d, 10d, 0);
	graph.addNode(v);

	v = new NodeImpl(1l, 30d, 20d, 2);
	graph.addNode(v);

	v = new NodeImpl(2l, 40d, 20d, 4);
	graph.addNode(v);

	v = new NodeImpl(3l, 50d, 30d, 0);
	graph.addNode(v);

	v = new NodeImpl(4l, 60d, 20d);
	graph.addNode(v);

	
	e = new EdgeImpl(8l,5l, 1l, 1, "Rua AB");
	graph.addEdge(e);

	e = new EdgeImpl(1l,1l, 2l, 3, "Rua BC");
	graph.addEdge(e);

	e = new EdgeImpl(2l,1l, 3l, 2, "Rua BD");
	graph.addEdge(e);

	e = new EdgeImpl(3l, 3l, 2l, 1, "Rua DC");
	graph.addEdge(e);

	e = new EdgeImpl(4l, 2l, 3l, 1, "Rua CD");
	graph.addEdge(e);

	e = new EdgeImpl(5l, 3l, 4l, 5, "Rua DE");
	graph.addEdge(e);

	e = new EdgeImpl(6l, 3l, 5l, 1, "Rua CE");
	graph.addEdge(e);

...

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