networks
incident
finds the edges incident to a vertex set
Calling Sequence
Parameters
Description
Examples
incident(v1, G)
incident(Vset, G)
incident(Vset, G, 'In')
incident(Vset, G, 'Out')
G
-
graph or network
v1
vertex in G
Vset
vertex set in G
Important:The networks package has been deprecated. Use the superseding command GraphTheory[IncidentEdges]instead.
Given a vertex v the edges incident with v are returned as a set.
Given a vertex set then the set of cut edges to the subgraph induced by that set of edges is returned.
The 'In'/'Out' flags specify which kind of directed edges should be considered. Undirected edges are considered bidirectional and included in both classifications.
This routine is normally loaded via the command with(networks) but may also be referenced using the full name networks[incident](...).
with⁡networks:
G≔complete⁡3:
addvertex⁡4,G:
addedge⁡seq⁡4,i,i=1..3,G:
incident⁡4,G
e4,e5,e6
incident⁡4,G,In
∅
incident⁡1,2,3,G
See Also
GraphTheory
GraphTheory[IncidentEdges]
networks(deprecated)[edges]
networks(deprecated)[ends]
with
Download Help Document