in debugging mode i saw [0] under adjecencies of v1
[0] has neighbour v3 and weight 103.0
how can i make [1] and [2]..... for other adjecencies of v1(for ex. first line and second line of code )
this code is only working for the last line and it is [0]
after first line it becomes [0]
after second line [0] changes
at the last line [0] has v3 neighbour 103.0 weight
i wanna this:
v1.adjacencies...
User Profile
Collapse
-
how can i do addEdge method in Vertex class,U can help me??...Leave a comment:
-
vertex adjacencies
hi! i need ur help..
i want to seperate this code to 3 parts:
v1.adjacencies = new Edge[]{ new Edge(v0, 79.75),
new Edge(v2, 39.42),
new Edge(v3, 103.00) };
i tried this:
v1.adjacencies = new Edge[]{ new Edge(v0, 79.75)};
v1.adjacencies = new Edge[]{ new Edge(v2, 39.42)};
v1.adjacencies = new Edge[]{ new Edge(v3,...
No activity results to display
Show More
Leave a comment: