> In the code/output below Node 153 has one neighbor (Node 156) but the degree > function returns 2. Does anyone know why this would happen? Your graph is directed and node 153 has an outgoing and an incoming edge. degree() returns the "undirected" degree by default, i.e. it counts both the incoming and the outgoing edges, while neighbors() returns the "outbound" neighbors. Use the mode= argument of neighbors() or degree() to change this behaviour; mode=... may be "in" for incoming edges only, "out" for outbound edges only and "all" for both.
-- T. _______________________________________________ igraph-help mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/igraph-help
