Network.from_nodes_and_edges

classmethod Network.from_nodes_and_edges(nodes, edges)[source]

Construct a network from nodes and edges.

Parameters:
nodeslist[list[float]] | dict[hashable, list[float]]

A list of node coordinates or a dictionary of keys pointing to node coordinates to specify keys.

edgeslist[tuple[hashable, hshable]]
Returns:
compas.datastructures.Network

A network object.

See also

to_nodes_and_edges()
from_obj(), from_lines(), from_pointcloud()