Skip to content
This repository was archived by the owner on Nov 1, 2024. It is now read-only.
This repository was archived by the owner on Nov 1, 2024. It is now read-only.

LabGraph Monitor Improvement - Support graph attributes in YAML #53

@jfResearchEng

Description

@jfResearchEng

Use a similar method in a related PR, to support LabGraph topology in LabGraph Monitor. This will be a function that looks something like:
def generate_labgraph_monitor(graph: df.Graph) -> None:
The graph topology itself consists of the following:

  • Methods (these are the nodes in the graph)
  • Publishers (these are directed edges leaving a method)
  • Subscribers (these are directed edges entering a method)
  • Nodes (these are logical groupings of methods which always share the same process – technically not part of the topology, but the grouping may be useful to call out)
  • Topics
    Topics determine what the directed edges are. Any two connected topics will back the same stream. Each stream will have one publisher and one or more subscribers; the edges are all from that publisher to each subscriber.

We can inspect these properties of a graph by looking at these private attributes:
__topics__: The topics
__streams__: The streams
__methods__: The methods (publishers, subscribers, and "transformers" which are just methods with both @publisher and @subscriber decorators)

Additional context

  1. Existing application can be found [here] (https://github.com/facebookresearch/labgraph/tree/main/extensions/graphviz_support)
  2. The code should update/replace the following folder: https://github.com/facebookresearch/labgraph/tree/main/extensions/yaml_support
  3. Create setup.py and README.md, where example can be found at: https://github.com/facebookresearch/labgraph/tree/main/extensions/labgraph_viz
  4. Add github action support, reference: https://github.com/facebookresearch/labgraph/actions/workflows/main.yml
  5. Add proper license header, example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions