Skip to content

inlinks

Syntax

inlinks(network_name, id)

Parameters

network_name
A valid network name.
id
The ID of the node in the network to use as an origin.

Returns

Returns a list of node IDs. The list may be empty.

Description

Returns the list of node IDs that have inlinks to the specified node in a network.

An inlink is defined as an edge that is directed towards the specified node. In undirected networks, all edges are both inlinks and outlinks to the nodes that they connect.

Examples

my_suppliers = inlinks(my_supply_chain_network, id())

See Also