object
cytoscapejs_graph_language
Predicates for generating diagram files in the Cytoscape Exchange (CX2) JSON format.
Availability:
logtalk_load(diagrams(loader))Author: Paulo Moura
Version: 1:1:0
Date: 2026-03-14
Compilation flags:
static, context_switching_callsRemarks:
(none)
Inherited public predicates:
Public predicates
(no local declarations; see entity ancestors if any)
Protected predicates
(no local declarations; see entity ancestors if any)
Private predicates
section_started_/1
Tracks whether a JSON array section (nodes or edges) has already emitted at least one element.
Compilation flags:
dynamicTemplate:
section_started_(Section)Mode and number of proofs:
section_started_(?atom) - zero_or_morein_nodes_section_/0
Flag indicating if the exporter is currently writing the nodes section.
Compilation flags:
dynamicMode and number of proofs:
in_nodes_section_ - zero_or_oneparent_stack_/1
Current stack of open graph container identifiers.
Compilation flags:
dynamicTemplate:
parent_stack_(Stack)Mode and number of proofs:
parent_stack_(?list(nonvar)) - zero_or_oneedge_counter_/1
Current counter used to generate unique edge identifiers.
Compilation flags:
dynamicTemplate:
edge_counter_(Counter)Mode and number of proofs:
edge_counter_(?integer) - zero_or_onenode_counter_/1
Current counter used to generate unique node identifiers.
Compilation flags:
dynamicTemplate:
node_counter_(Counter)Mode and number of proofs:
node_counter_(?integer) - zero_or_onenode_id_/2
Maps source node identifiers to generated CX2 numeric identifiers.
Compilation flags:
dynamicTemplate:
node_id_(Identifier,NumericId)Mode and number of proofs:
node_id_(?nonvar,?integer) - zero_or_morecontainment_edge_/2
Stores pending containment edges between parent and child nodes.
Compilation flags:
dynamicTemplate:
containment_edge_(ParentId,ChildId)Mode and number of proofs:
containment_edge_(?integer,?integer) - zero_or_moreOperators
(none)