Skip to content

gianmarcodonetti/graphy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

graphy

Build Status Test Coverage

Graph computations.

The implemented methods are:

  • Vertex Smoothing in python

Vertex Smoothing

Smoothing out or smoothing a vertex w with regards to the pair of edges (e1, e2) incident on w, removes both edges containing w and replaces (e1, e2) with a new edge that connects the other endpoints of the pair.

For example, the simple connected graph with two edges, e1 {u,w} and e2 {w,v}:

alt text

has a vertex (namely w) that can be smoothed away, resulting in:

alt text

The service vertex_smoothing requires mainly:

  1. links, a collection of record, representing the links in the considered graph, could be in the form of a list, a Spark RDD or a Spark DataFrame;
  2. vertices_to_remove, a collection of named nodes to smooth out.

Each record inside the links collection should contain the specification of a single link, that is:

  1. the source information;
  2. the target information;
  3. the link between the source and the target information.

Each point above could be represented as the user wants. Indeed, the user has also to provide the way to retrieve all these information through the source_getter, target_getter, link_getter parameters.

About

Graph computations

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published