networks
incidence
makes an incidence matrix from a graph
Calling Sequence
Parameters
Description
Examples
incidence(G)
G
-
graph or network
Important:The networks package has been deprecated. Use the superseding command GraphTheory[IncidenceMatrix]instead.
This procedure returns the incidence matrix with rows representing vertices and edges representing columns.
If an edge is not incident to a vertex then the corresponding table entry is 0. If a directed edge is leaving a vertex then the corresponding table entry is -1. In all other cases, the table entry is 1.
This routine is normally loaded via the command with(networks) but may also be referenced using the full name networks[incidence](...).
with⁡networks:
G≔cycle⁡4:
addedge⁡1,3,G:
T≔incidence⁡G
T≔1001−1110000110100110
T1,2
0
See Also
GraphTheory
networks(deprecated)[edges]
networks(deprecated)[incident]
with
Download Help Document