Giter Site home page Giter Site logo

ortho-graph's Introduction

NAME

ortho-graph - compute orthogonal routing

Simple Graph

SYNOPSIS

ortho-graph --file graph_description.yaml

cat graph_description.yaml | ortho-graph 

cat yaml/json/perl/xml/dot | translator | ortho-graph --json | visualisation-tool

DESCRIPTION

Given a graph description, compute orthogonal routes between the graphs nodes.

A graph โ€˜Gโ€™ is a set of nodes 'n' connected by directional edges 'e': G = (n, e)

An edge is either:

  • uni-directional, from one node to another
  • bi-directional, between two nodes
  • from one node to itself

There can be multiple edges:

  • between each pair of nodes
  • from a node to itself

Computation

  • minimal edge turns
  • minimal edge overlap

OPTIONS

--json -gives json format as output

--file -graph description file path

INPUT

The graph description is in YAML format. (https://yaml.org/)

node

  • no coordinates, default case
  • specify node coordinates
  • computed given another node as origin and direction
  • node shape
    • size width/ length
    • size computed based on label

edge

A: { B, C, ... }

Defines edges AB, AC, ...

  • uni-directional, from one node to another
  • bi-directional, between two nodes
  • from one node to itself
  • edge start, end

Multiple edges:

  • for each pair of nodes
  • for each node

user attributes

passed as-is to output

user_attributes = { ... }

OUTPUT

The output is in JSON format

{"Graph": {"placed nodes": {"A": [0, 0], "B": [0, 3], "D": [3, 0], "C": [0, 6]}}}

EXIT STATUS

code description
0 graph routed ok
2 wrong number of arguments
10 invalid graph description

DOCUMENTATION

EXAMPLES

COPYRIGHT AND LICENSE

Thomas Astley 2023

GNU GPL Version 3, see LICENSE.txt file

SEE ALSO

Orthogonal Layouts Lecture

Lecture

Graph::Easy

cpan

documentation

Orthogonal Connector Routing

module

Orthogonal edge router

documentation

Orthogonal Layout Algorithm Research papers

paper 1

paper 2

ortho-graph's People

Contributors

thomasastley avatar nkh avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.