Giter Club home page Giter Club logo

graphcore's Introduction

commands:

help

syntax: help [COMMAND] / help operators
help: list commands
help COMMAND: get help on COMMAND
help operators: print help on operators

add-arcs

syntax: add-arcs {:|<}
read a data set of arcs and add them to the graph. empty line terminates the set.

remove-arcs

syntax: remove-arcs {:|<}
read a data set of arcs and remove them from the graph. empty line terminates the set.

replace-predecessors

syntax: replace-predecessors NODE {:|<}
read data set of nodes and replace predecessors of NODE with given set.

replace-successors

syntax: replace-successors NODE {:|<}
read data set of nodes and replace successors of NODE with given set.

traverse-predecessors

syntax: traverse-predecessors NODE DEPTH
list NODE and its predecessors recursively up to DEPTH.

traverse-successors

syntax: traverse-successors NODE DEPTH
list NODE and its successors recursively up to DEPTH.

traverse-neighbors

syntax: traverse-neighbors NODE DEPTH
list NODE and its neighbors recursively up to DEPTH.

list-predecessors

syntax: list-predecessors NODE
list direct predecessors of NODE.

list-successors

syntax: list-successors NODE
list direct successors of NODE.

find-path

syntax: find-path X Y
find the shortest path from node X to node Y. return data set of arcs representing the path.

find-root

syntax: find-root X
find the path from X to nearest root node. return data set of arcs representing the path.

list-roots

syntax: list-roots
list root nodes (nodes without predecessors).

list-leaves

syntax: list-leaves
list leaf nodes (nodes without successors).

stats

syntax: stats
print some statistics about the graph in the form of a name,value data set.
names and their meanings:
ArcCount        number of arcs
ArcRamKiB       total RAM consumed by arc data, in KiB
DataInvalid     nonzero if any obvious errors were found in graph data
MaxNodeID       greatest node ID
MinNodeID       lowest node ID
NumDups number of duplicates found (must be zero)

clear

syntax: clear
clear the graph model.

shutdown

syntax: shutdown
shutdown the graph processor.

quit

syntax: quit
shutdown the graph processor.

protocol-version

syntax: protocol-version
print PROTOCOL_VERSION. for internal use only.

set-meta

syntax: set-meta NAME VALUE
add or set an arbitrary text variable.
variable names may contain alphabetic characters (a-z A-Z), digits (0-9), hyphens (-) and underscores (_),
and must start with an alphabetic character, a hyphen or an underscore.

get-meta

syntax: get-meta NAME
read a named text variable.

remove-meta

syntax: remove-meta NAME
remove the named variable.

list-meta

syntax: list-meta
list all variables in this graph.

graphcore's People

Contributors

brightbyte avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  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.