Skip to content

fangzheng354/graphs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Graphs

PyPI version Build Status Coverage Status

A library for Graph-Based Learning in Python.

Provides several types of graphs container objects, with associated visualization, analysis, and embedding functions.

Requirements

Requires recent versions of:

  • numpy
  • scipy
  • scikit-learn
  • matplotlib

Optional dependencies:

  • python-igraph
  • graphtool

Testing requires:

  • nose
  • nose-cov

Usage example

from graphs.construction import random_graph

G = random_graph([2,3,1,3,2,1,2])

print G.num_vertices()  # 7
print G.num_edges()     # 14

G.symmetrize(method='max')
X = G.isomap(num_vecs=2)

G.plot(X, directed=False, weighted=False, title='isomap embedding')()

About

All things graph.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.9%
  • Shell 0.1%