Closed clayt85 closed 5 years ago
But now, what happens if I try network.getConnectedNodes(1)? ...
@clayt85 Why don't you try it and share your findings with the community?
closed in favor of #4167 (looks like somebody likes to create issues...)
Looks like nobody likes to fix issues. I guess that is why there is visjs-network
The documentation for the getConnectedNodes method states that the first argument is "a string nodeId or edgeId". What happens if a node and an edge share the same ID? For instance, this code is perfectly valid to create a network:
But now, what happens if I try
network.getConnectedNodes(1)
? Does it return 2 (the node connected to Node 1) or [1 2] (the nodes connected to Edge 1)?