Skip to content

We compute the Varchenko matrix of a partial cube and determine its determinant.

Notifications You must be signed in to change notification settings

SophiaKeip/VarchenkoMatrixPartialCubes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

VarchenkoMatrixPartialCubes

We compute the Varchenko matrix of a partial cube.

The Python script Calc_VM.py computes the Varchenko matrix of a given partial cube graph. It is based on a collection of functions from David Eppstein and and utilizes symbolic matrix construction provided by the sympy library.

Input:
An undirected graph G, represented as a adjacency list in the form of a python dictionary.

Example: G = {0:[1,2,4],1:[0,3,5],2:[0,3],3:[1,2,6],4:[0,5],5:[4,1,6],6:[5,3]}

Output:

  • A symbolic Varchenko matrix representing the graph.
  • A file VarchenkoMatrix.txt containing the matrix in comma-separated format.

The script checks whether the input graph is a partial cube. If it is, it identifies the equivalence classes of the Djoković–Winkler-relation on edges, assigns symbolic variables to them, and constructs the corresponding Varchenko matrix.

This script uses the python library/ functions of David Eppstein. In order to use our script, get the following files:

  • BFS.py
  • Biconnectivity.py
  • vBipartite.py
  • BipartiteMatching.py
  • DFS.py
  • Graphs.py
  • Medium.py
  • PartialCube.py
  • PartialOrder.py
  • StrongConnectivity.py
  • UnionFind.py
  • Util.py

from
https://ics.uci.edu/~eppstein/PADS/

About

We compute the Varchenko matrix of a partial cube and determine its determinant.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published