UNPKG

gramoloss

Version:

Graph theory package for edition and computation

8 lines (7 loc) 355 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const antimagic_1 = require("../algorithms/antimagic"); const graph_1 = require("../graph"); const g = graph_1.Graph.fromEdges([[0, 1], [1, 2], [1, 3], [3, 4], [3, 5], [4, 6], [5, 7]]); // const g = Graph.generateRandomGNP(10, 0.5) (0, antimagic_1.antimagicGreedyLabelling)(g);