next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
NautyGraphs :: addEdges

addEdges -- creates a list of graphs obtained by adding one new edge to the given graph in all possible ways

Synopsis

Description

Simply creates a list, in the same format as the input, of all possible graphs obtained by adding one new edge to the input graph.
G = graph {{1,2},{2,3},{3,4},{4,5},{1,5}};
addEdges G
If the List input format is used, then one should use care as the list may contain isomorphic pairs.

See also

Ways to use addEdges :