Published online by Cambridge University Press: 05 June 2012
▪AcyclicQ
AcyclicQ[g] yields True if graph g is acyclic.
See also FindCycle, TreeQ ▪See page 285
▪AddEdge
AddEdge[g, e] returns a graph g with the new edge e added, e can have the form {a, b} or the form {{a, b}, options}.
See also AddVertex, DeleteEdge ▪See page 193
▪AddEdges
AddEdges[g, 1] gives graph g with the new edges in l added. l can have the form {a, b}, to add a single edge {a, b}, or the form {{a, b}, {c, d}, ‥}, to add edges {a, b}, {c, d}, ‥, or the form {{{a, b}, x}, {{c, d}, y}, ‥), where x and y can specify graphics information associated with {a, b} and {c, d}, respectively.
New function ▪See also AddEdge ▪See page 193
▪AddVertex
AddVertex[g] adds one disconnected vertex to graph g. AddVertex[g, v] adds to g a vertex with coordinates specified by v.
See also AddEdge, DeleteVertex ▪See page 195
▪AddVertices
AddVertices[g, n] adds n disconnected vertices to graph g. AddVertices[g, vList] adds vertices in vList to g. vList contains embedding and graphics information and can have the form {x, y} or {{X1, y1}, {x2, y2} ‥} or the form {{{x1, y1), g1}, {{x2, y2}, g2}, …}, where {x, y}, {x1, y1}, and {x2, y2} are point coordinates and g1 and g2 are graphics information associated with vertices.
To save this book to your Kindle, first ensure no-reply@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.
Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.
Find out more about the Kindle Personal Document Service.
To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.
To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.