doInclude ([ include ("features/base_handler/index.js") ]) /** * Save/Load graph from Incidence matrix. * */ function ShowIncidenceMatrix(app) { BaseHandler.apply(this, arguments); this.message = ""; } // inheritance. ShowIncidenceMatrix.prototype = Object.create(BaseHandler.prototype); // First selected. ShowIncidenceMatrix.prototype.firstObject = null; // Path ShowIncidenceMatrix.prototype.pathObjects = null; ShowIncidenceMatrix.prototype.show = function() { var handler = this; var dialogButtons = {}; let edgeNames = this.app.graph.edges.map(function(edge) { return edge.GetUpText(); }); let edgeEnumSelect = $("#incidenceEdgeEnumeration"); let edgeNamesDialog = $("#incidenceEdgeNamesDialog"); let edgeNamesList = $("#incidenceEdgeNamesList"); let currentColumns = []; let currentColumnWidths = []; let matrixIsValid = false; let edgeEnumValue = this.app.currentEnumEdgesType || ""; if (edgeEnumValue === "Custom") { edgeEnumValue = ""; } let selectedEdgeEnumValue = edgeEnumValue; edgeEnumSelect.find("option:not(:first)").remove(); this.app.GetEnumVerticesList().forEach(function(item) { if (item.value !== "Custom") { edgeEnumSelect.append($("