in graph

How to discover sink nodes in a graph

We all understand graphs or networks are composed of nodes and edges. Some of these nodes can exist in a directed or undirected structure. In a directed graph, there edges can be either incoming or outgoing from a given node. A sink refers to a node in directed graph with no outgoing edges. In a simple fashion, you can view a sink as someone who receives a lot but never chooses to give. Or, is obsessed with hoarding. In a social network, a sink or friendship node will be poor in passing on important information to the group. On the other hand, they might be great in keeping secrets and avoid allowing things to slip up. A sink could either be local or global. Local sinks are also referred to as a terminal and are directed graphs with no departing edge. A global sink is usually viewed as a sink and is a node that is reached by all the nodes in a given directed graph. 

Simple illustration of a sink node

We do understand sink nodes do not have an edge emanating from them to other nodes in the specific graph. It will be important to express local and global nodes with two diagrams to drive home the point.

Local sink: In a local sink situation, all nodes are connected and lead to the sink. As earlier stated, the sink node exists because there are no edges emanating from the orange coloured vertex. In a friendship network, imagine a friend is the source of an exciting news of employment. This information is then shared from one blue node to the next with an instruction to keep the exciting update or development within the network. From the illustration below, it is clear to see that the orange node receives this great news from other friends in the same social network or community, but unable to share that with any other node due to the command to keep the news within and the facts that every friend in the network is fully acquainted with the news. In this case, the network is considered local and the orange node is a sink due to the absence of an outgoing edge. 

Universal Sink: In the illustration below, it clearly indicates the shaded node appears to be the sink in this graph. It is because all nodes are pointing towards the sink and there are no outgoing edges from the sink. A key differentiator between this structure in comparison to  that of the local sink is the limited connection between the non-sink nodes. Unlike in a local sink node graph, all nodes are mostly connected whilst pointed towards the designated sink. 

Write a Comment

Comment