Skip to main content

Tools for analysing the structure of branching stories

Project description

A Python package to explore the structure of branching stories. Documentation <>


The module has been developed with python 3.6.6 and the following modules. Other versions might work also but have not been tested:

  • pathlib2 v.2.2.0
  • pandas v.0.19.2
  • numpy v.1.11.3


pip install storystructure

Example usage

To use the package two input data files are necessary:

  • An edgelist file with columns source and target
  • A node attributes file with columns node and attribute. The attribute column must be on of the following values good, bad, pause.
from storystructure.storystructure import storystructure
# create a new object
s = storystructure.storystructure()
# load an edgelist and node attributes
s.saveFig('graph'.png')     # Make figure
s.simplify() # Removing self loops and double edges

An more detailed example is included in the jupyter notebook scripts/Tutorial.ipybn

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for storystructure, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size storystructure-1.0.2.tar.gz (172.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page