construct graph by subdividing edges
Subdivide(G, E, r)
(optional) edge or arc or set (or list) of edges or arcs of the graph
(optional) positive integer
The Subdivide command subdivides the specified edges or arcs of a graph or digraph, by putting r new vertices on each specified edge or arc.
If r is not specified, a default value of 1 is used.
G≔Graph 1: an undirected unweighted graph with 5 vertices and 6 edge(s)
SG≔Graph 2: an undirected unweighted graph with 7 vertices and 8 edge(s)
DG≔Graph 3: a directed unweighted graph with 3 vertices and 2 arc(s)
SDG≔Graph 4: a directed unweighted graph with 5 vertices and 4 arc(s)
Download Help Document
What kind of issue would you like to report? (Optional)