Skip to content

dj-foxxy/scalefreenetworks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Animation file specification

This section describes the format and semantics of the animations files produced by sfn.

  • One command per line.
  • Tokens are separated by a single space.
  • The first token on each line is a single character that indicates the command.
  • n is the current number of nodes in the network. It is up to the implementor to keep track of this.

Commands

F

Marks the start of a new frame.

I [num]

Add the initial [num] nodes. The IDs of these nodes are 0, ..., [num] - 1. Use [num] to initialise n.

R [i] [j]

Add an initial random link between the [i]th and [j]th node.

A

Add a new node, its ID is n. Remember to increment n after assigning the ID to the new node.

L [i] [j]

Add a new link between the [i]th and [j]th node.

C [i] [colour]

Set the colour of the [i]th node to [colour]. [colour] can be a common colour name, for example, red.

E [i] [j] [colour]

Set the colour of the edge between [i]th and [j]th node to [colour] can be a common colour name, for example, green.

About

COMP36212 Scale-free network poster.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published