Directed Graph Model

The Directed Graph Model

A directed graph G consists of a set of vertices V and an edge set E of ordered pairs of vertices. For our purposes, each vertex corresponds to an artist. If (Y,X)∈E(Y,X) \in E(Y,X)E then there is an arrow pointing from YYY to XXX, called edge.

For instance, V={influencer,follower},E={(influencer,follower)}V=\{influencer,follower\}, E = \{(influencer,follower)\}V={influencer,follower},E={(influencer,follower)}, The relationship between influencers and followers can be represented in the graph G consist of V and E.

Construct a Directed Graph

In the directed graph G, each edge (arrow) represents a binary relation where a vertex points to another.
An example will explain this modeling process in more detail:

In Figure:G(Example), the vertex set contains 1,2,3,4,5,61, 2, 3, 4, 5, 61,2,3,4,5,6 .
The relationship of vertex includes:

  • 6 points to 1,
  • 1 points to 2 and 5,
  • 2 points to 3,
  • 3 points to 4,
  • 4 points to 2 and 7.

Strongly Connected Component(SCC)

Strongly Connected: A directed graph is strongly connected if each vertex is reachable from other vertex.
Strongly Connected Components: Strongly connected is a binary equivalence relation, and the induced subgraphs of its equivalence classes are called strongly connected components.
scc(G)scc(G)scc(G): The set of strongly connected components in graph G.
In Figure: G(Eample), scc(G)={[2,3,4]}scc(G) = \{[2,3,4]\}scc(G)={[2,3,4]}

Directed Acyclic Graph(DAG)

If each strongly connected component of the original graph contract to a single vertex, the resulting graph is a directed acyclic graph called directed acyclic graph(DAG).

Find the strongly connected components(scc(G)scc(G)scc(G)) in a directed graph G, replace the circle in G with the strongly connected components as a vertex, and get new directed graph C(must be DAG).

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值