Returns the incoming edges
MuPAD® notebooks are not recommended. Use MATLAB® live scripts instead.
MATLAB live scripts support most MuPAD functionality, though there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.
Graph::getEdgesEntering(G) returns a table
with the adjacency lists for incident (incoming) edges. Thus
Graph::getEdgesEntering(G) returns a table containing all those vertices
which there is an edge
[w, v] in
A small directed graph is created to show the incoming (incident) edges:
V := [1, 2, 3, 4, 5]: Ed := [[1, 2], [1, 3], [2, 3], [2, 4], [3, 4], [3, 5], [4, 5]]: G1 := Graph(V, Ed, Directed): Graph::getEdgesEntering(G1)
In an undirected graph the output could look like this:
G1 := Graph::createCompleteGraph(5): Graph::getEdgesEntering(G1)