官术网_书友最值得收藏!

Graphs in mathematics

A graph is a mathematical structure of objects in which some pairs of objects are connected by links. The objects are denoted by abstractions called nodes (also known as vertices) and their links are represented by relationships (also known as edges). The relationships might be directed where it makes semantic sense in one particular direction. In cases where the semantics work in both directions, we can safely use undirected relationships to denote the link.

Figure 1.1: Edges, vertices, directionality

In Figure 1.1, we have three actors or entities, Alice, Bob, and London, which are represented as nodes. The links between them are denoted by relationships. Alice is married to Bob and Bob is married to Alice. Both true, hence we represent Is Married To as an undirected relationship. However, Alice lives in London is represented by a directed relationship, Lives In, from Alice to London. This is because London lives in Alice cannot be true.

主站蜘蛛池模板: 西丰县| 湘潭市| 襄城县| 治多县| 东方市| 抚顺县| 郎溪县| 扬中市| 云安县| 武夷山市| 桂林市| 绥德县| 隆昌县| 壶关县| 凉城县| 石棉县| 娄底市| 双辽市| 木里| 寻甸| 尚义县| 文昌市| 竹北市| 五寨县| 肇东市| 贵港市| 乐山市| 宁化县| 通渭县| 米易县| 当涂县| 巴塘县| 万宁市| 精河县| 辽宁省| 孙吴县| 纳雍县| 乌什县| 那曲县| 沁阳市| 北川|