GraphEdge#

class scikitplot.corpus.GraphEdge(source, target, relation, evidence, producer, trust, generation=None)[source]#

One relationship, with the provenance every edge must carry.

Parameters:
sourcestr

Origin node_id.

targetstr

Destination node_id.

relationRelationType

How the two relate. Never generic.

evidencestr

The field(s) this edge was derived from.

producerstr

Identity and version of the rule, extractor or model that produced it.

trustEdgeTrust

Which construction tier it belongs to.

generationstr or None, optional

Graph generation this edge belongs to.

Parameters:
evidence: str[source]#
generation: str | None = None#
producer: str[source]#
relation: RelationType[source]#
source: str[source]#
target: str[source]#
to_dict()[source]#

Return a JSON-compatible mapping.

Return type:

dict[str, Any]

trust: EdgeTrust[source]#