StackGenVis: Alignment of Data, Algorithms, and Models for Stacking Ensemble Learning Using Performance Metrics https://doi.org/10.1109/TVCG.2020.3030352
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
StackGenVis/frontend/node_modules/clean-pslg/example/example.js

29 lines
557 B

var cleanupPSLG = require('../clean-pslg')
//Create a planar straight line graph with many degenerate crossings
var points = [
[ 0.25, 0.5 ],
[ 0.75, 0.5 ],
[ 0.5, 0.25 ],
[ 0.5, 0.75 ],
[ 0.25, 0.25 ],
[ 0.75, 0.75 ],
[ 0.25, 0.75 ],
[ 0.75, 0.25 ]
]
//These are the edges of the graph
var edges = [
[0, 1],
[2, 3],
[4, 5],
[6, 7]
]
//Run clean up on the graph
if(cleanupPSLG(points, edges)) {
console.log('removed degeneracies from graph')
}
console.log('points = \n', points)
console.log('edges = \n', edges)