Skip to main content

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

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.2-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ltl_parser_pkg-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 625121d7c74cd1dfee3d362042b9b5f2ca5bc3d55a6228bf6eaba18832a12294
MD5 01993badeae1ca77e255ebd66ddfbd65
BLAKE2b-256 0cf22227769a8d6f2d2fd54bd90ec64d94ef63aecfe559e9990294e3d9974d14

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