Skip to content

Commit 0ca81dd

Browse files
committed
Updated readme and fixed opening some vertices.
1 parent 8ecf631 commit 0ca81dd

File tree

4 files changed

+14
-9
lines changed

4 files changed

+14
-9
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,19 @@ Graphs entered into graph creator can be output as a adjacency matrix represente
1313
Graph Creator can output a JSON file with (x, y) coordinates of each user added vertex.
1414

1515
## Graph Input Options
16-
Graph Creator allows point and click vertex addition and edge addition. Currently, visualization of multiple edges between two vertices is supported. Self loops can be added, however visualization has not been implemented yet. In addition, point and click vertex removal is supported. Removing edges from a vertex in the reverse order in which they were added is supported (undo).
16+
Graph Creator allows point and click vertex addition and edge addition. Labels can be added to vertices by hovering the mouse over them and typing. Weights can be added to edges in the same fashion. Both parallel edges, and self loops are supported. In addition, point and click vertex removal is supported.
1717

18-
## Installation
18+
## Binaries
19+
See releases for the latest binaries.
20+
21+
## Installation From Source
1922
To install Graph creator first git clone this repo:
2023

2124
```
2225
git clone https://github.com/Jabbath/Graph-Creator
2326
```
2427

25-
Now, cd to the Graph-Creator director and run npm install to install the dependencies:
28+
Now, cd to the Graph-Creator directory and run npm install to install the dependencies:
2629

2730
```
2831
cd Graph-Creator

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"name": "graph-creator",
3-
"version": "0.7.6",
3+
"version": "0.7.7",
44
"main": "index.html",
55
"window": {
66
"height": 1024,
7-
"width": 1024
7+
"width": 1080
88
},
99
"description": "an app to make graphs from images",
1010
"readme": "README.md",

src/cytoInit.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ function renderGraph(img){
1313
'opacity': 0.7,
1414
'curve-style': 'bezier',
1515
'control-point-step-size': '50px',
16-
'label': ''
16+
'label': '',
17+
'text-outline-width': 2,
18+
'text-outline-color': '#ff0000'
1719
}
1820
},
1921
{

src/fileWrite.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ function enumEdges(){
363363
edgeCount[target][source].ids.push(id);
364364
}
365365
else{
366-
edgeCount[source][target] = {count: 1, ids: id};
366+
edgeCount[source][target] = {count: 1, ids: [id]};
367367
}
368368
}
369369
}
@@ -439,7 +439,7 @@ function parseGraph(graph){
439439
var sepString = edges[i].split('{');
440440

441441
//Get the target node and remove the extra space if there was a bracket
442-
if(sepString[0].length === 2){
442+
if(sepString.length === 2){
443443
var targetNode = sepString[0].slice(0, -1);
444444
}
445445
else{
@@ -461,7 +461,7 @@ function parseGraph(graph){
461461
id: targetNode
462462
},
463463
style: {
464-
label: sourceNode
464+
label: targetNode
465465
}
466466
});
467467
}catch(err){}

0 commit comments

Comments
 (0)