Edge (Graph Edge)
Knowledge GraphsAn Edge is a connection between two nodes in a knowledge graph that represents a relationship between them. Each edge has a label describing the relationship type (e.g., HAS_ATTRIBUTE, SHARES_ATTRIBUTE, IS_PART_OF), direction (from source node to target node), and optionally weight (strength of connection).
In EAV mapping to graphs, an edge corresponds to the relationship between an entity and an attribute or between two entities sharing an attribute. Edges are the foundation of graph linking—each SHARES_ATTRIBUTE edge suggests a potential internal link between pages. The number of edges a node has is its degree centrality (more edges = more important node).
For example, the edge 'Prawo spadkowe' → HAS_ATTRIBUTE → 'probate' indicates that an inheritance law article should contain a section about forced heirship. In practice, you create edges in Neo4j using the MERGE operation with labels—establish a list of allowed labels at the project's start to avoid naming chaos.