Skip to content
/ systreKey Public

Stripped down JS code for constructing a unique topological key (so-called Systre key) for a periodic graph

Notifications You must be signed in to change notification settings

odf/systreKey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

systreKey

Stripped down JS code for constructing a unique topological key (so-called Systre key) for a periodic graph.

Installation

  1. Get node (see https://nodejs.org).

  2. Clone the repository and move into it.

    git clone https://github.com/odf/systreKey.git
    cd systreKey
  1. Install the node packages required for building.
    npm install
  1. Build the compiled JavaScript file.
    npm run build
  1. There is now a file ./dist/systreKey.js that can be used from node like this:
    node
    
    > // we are typing the following into the node repl
    > systreKey = require('./dist/systreKey').systreKey
    [Function: ft]
    > systreKey([[1,2,[0,0,0]], [1,2,[1,0,0]], [1,2,[0,1,0]], [1,2,[0,0,1]]])
    '3 1 2 0 0 0 1 2 0 0 1 1 2 0 1 0 1 2 1 0 0'

About

Stripped down JS code for constructing a unique topological key (so-called Systre key) for a periodic graph

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages