Warning

This documents an unmaintained version of NetworkX. Please upgrade to a maintained version and see the current NetworkX documentation.

# Boundary¶

Routines to find the boundary of a set of nodes.

Edge boundaries are edges that have only one end in the set of nodes.

Node boundaries are nodes outside the set of nodes that have an edge to a node in the set.

 edge_boundary(G, nbunch1[, nbunch2]) Return the edge boundary. node_boundary(G, nbunch1[, nbunch2]) Return the node boundary.