Skip to main content

Parse the DOT file generated from SPOT API and creates a Graph with node-edge information.

Reason this release was yanked:

This release doesn't cover all types of DOT file formatting.

Project description

Graph Parser for LTL formulation

LTL Graph parser takes a .dot file as an input generated from the SPOT library, parses it and creates a Graph with node-edge information.

API Reference

class LTLGraphCreation contain following APIs.

  • parsing_buffer()

    • This method takes the .dot file as string and creates the graph object. Internally a callback method is invoked to store the node and edge information in a dictionary object.
  • graph_print()

    • Print the full graph information with edges and nodes.
  • get_action(src, dst)

    • Returns a list of actions taken from a source vertex to the destination vertex in the LTL formaulation.
  • check_dead_nodes()

    • Print all the dead nodes (if present any) in the formulated graph.
  • is_dead(node)

    • Check whether a vertex/node is in a dead state, i.e., no other vertex/state can be reachable from this vertex/node.
  • recurse_traversal(cur_node, path, actions, p_len=20)

    • It prints the path of length p_len (default: 20) and the corresponding actions taken along the edges from a starting vertex. While traversing the graph, it avoids the dead vertex and randomly choose the next valid vertex with an action.
  • self.graph

    • This class variable holds all the node and edge information of the LTL graph generated from the SPOT library.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

ltl_parser_pkg-0.1.1-py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page