8000 GitHub - githubjakob/read-graph-from-excel
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

githubjakob/read-graph-from-excel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

read-graph-from-excel

This module is a POC to read an excel spreadsheet ('xlsx') and generate a directed graph from the formulas in the spreadsheet.

The assumption is that an excel spreadsheet can be seen as one big function that maps a set of input parameters to a set of output parameters.

The idea is to visualize the dependencies between the formulas of the spreadsheed in a directed graph.

The nodes represent the cells with the formulas, e.g. node B1 has formula "B1=A1+1". The edges represent how the formulas are linked to each other, e.g. node B1 "B1=A1+1" is linked to node A1.

Nodes with no ingoing edges represent the "input parameters" of the excel spreadsheet while nodes with on outgoing edges represent the "output parameters".

Example

The selected cell has the formula "=A1+1". The node on the very left is representing that cell - note the outgoing edge to the node "A1". You can also see that the cell "C1" is referencing the cell "B1" since the two nodes are connected.

Example Excel

Output Graph

Curent state of the script

  • Can read an excel spreadsheet
  • Parse the cells on one Sheet until max_row and max_col
  • Infer the dependencies between the cells
  • Create and plot a graph that shows the nodes and the dependencies

Todo

  • Extend to read multiple sheets
  • Extend to dynamically infer the range of the active cells in a sheet (max_row and max_col are currently hardcoded)
  • Test with more sophisticated spreadsheets
  • Refactor and clean up the code :-)

Dependencies

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0