@ts-graphviz/core
Graphviz Models for Object-Oriented Programming
Last updated 3 years ago by kamiazya .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @ts-graphviz/core 
SYNC missed versions from official npm registry.

@ts-graphviz/core

This package contains the core implementation of models and functions provided to users for the ts-graphviz library.

It is part of the ts-graphviz library, which is split into modular packages to improve maintainability, flexibility, and ease of use.

Features

  • Graph, Node, and Edge model implementations
  • High-level APIs for creating and manipulating DOT language elements
  • Extensible design for custom implementations

Usage

Import the necessary classes and functions from the @ts-graphviz/core package:

import { Graph, Node, Edge } from '@ts-graphviz/core';

Use the imported items in your project to create and manipulate DOT language elements:

const graph = new Graph('G');
const nodeA = new Node('A', { label: 'Node A' });
const nodeB = new Node('B', { label: 'Node B' });
const edge = new Edge([nodeA, nodeB], { label: 'A -> B' });

graph.addNode(nodeA);
graph.addNode(nodeB);
graph.addEdge(edge);

console.log(graph.toDot());

For more examples and usage details, please refer to the ts-graphviz documentation.

Contributing

Contributions to the ts-graphviz project are welcome.

Please refer to the main ts-graphviz repository for guidelines on how to contribute.

License

This package is released under the MIT License.

Current Tags

103 Versions

Maintainers (1)
Downloads
Total 8
Today 0
This Week 0
This Month 7
Last Day 0
Last Week 4
Last Month 0
Dependencies (2)
Dev Dependencies (3)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE