generate a graph from a specified set of vertices and edges
set of vertex names
set of pairs of vertex names
Important: The networks package has been deprecated. Use the superseding command GraphTheory[Graph] instead.
This procedure generates graphs directly from a set of vertices and a set of vertex pairs. Each pair of vertices is specified as either a list or a set. Use of a list indicates direction from the tail to the head.
This routine is normally loaded via the command with(networks) but may also be referenced using the full name networks[graph](...).
Only one of these edges should be directed.
Download Help Document
What kind of issue would you like to report? (Optional)