selinonlib.edge module

Edge representation in task/flow dependency graph.

class selinonlib.edge.Edge(nodes_from, nodes_to, predicate, flow, foreach, selective)[source]

Bases: object

Edge representation.

check()[source]

Check edge consistency.

foreach_str()[source]

Construct string representation for foreach node.

Returns:text representation of foreach
classmethod from_dict(dict_, system, flow)[source]

Construct edge from a dict.

Parameters:
  • dict (dict) – a dictionary from which the system should be created
  • system (System) –
  • flow (Flow) – flow to which edge belongs to
Returns:

edge representation

Return type:

Edge