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 details)

Uploaded Python 3

File details

Details for the file ltl_parser_pkg-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: ltl_parser_pkg-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.10

File hashes

Hashes for ltl_parser_pkg-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3d5754bb03008c8ed49750a963e966b737e044d4f6982d542c417263db5e8c21
MD5 c2b4ffe6eedb54cefeb546d3b9520aec
BLAKE2b-256 d7c9199722fdb198391dd537641cb635cd6e4a7a147dd8eca94a9900f007d65f

See more details on using hashes here.

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