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

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.

主站蜘蛛池模板: 长顺县| 自贡市| 宁化县| 清徐县| 中江县| 宁强县| 鄱阳县| 昆明市| 华池县| 汪清县| 炎陵县| 民丰县| 友谊县| 称多县| 朝阳市| 颍上县| 五家渠市| 金寨县| 遂平县| 阿合奇县| 枝江市| 府谷县| 汝州市| 广宗县| 遂溪县| 慈溪市| 昔阳县| 吉木萨尔县| 铜山县| 通榆县| 兴义市| 榕江县| 滦南县| 黄梅县| 景东| 连江县| 仁寿县| 明星| 伊川县| 呼图壁县| 郯城县|