@ksvedal/docs 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +74 -0
- package/dist/Starthjelp-CDnMsPRF.js +6 -0
- package/dist/Starthjelp-DTDqsiPb.js +6 -0
- package/dist/_baseUniq-FW_jgYGR.js +477 -0
- package/dist/access_policy-BV-cRgLX.js +17 -0
- package/dist/access_policy-pBOJMSEK.js +17 -0
- package/dist/access_token_lifetime-6ypKk6LU.js +31 -0
- package/dist/access_token_lifetime-CVau9UC3.js +31 -0
- package/dist/allowed_grant_types-BrnsQvWi.js +101 -0
- package/dist/allowed_grant_types-ovkxJeQq.js +101 -0
- package/dist/application_type-BAESO1T4.js +36 -0
- package/dist/application_type-BtouPPrt.js +39 -0
- package/dist/arc-zSbgd3Dl.js +83 -0
- package/dist/architecture-U656AL7Q-bG73RCfJ.js +5 -0
- package/dist/architectureDiagram-VXUJARFQ-DbJ1yKpS.js +4668 -0
- package/dist/authentication_method-B28p58-a.js +43 -0
- package/dist/authentication_method-D8EwmEki.js +43 -0
- package/dist/authorization_lifetime-CfhrWQ9Y.js +39 -0
- package/dist/authorization_lifetime-DrFRbscQ.js +39 -0
- package/dist/backchannel_logout_uri-BTceN7xq.js +33 -0
- package/dist/backchannel_logout_uri-CBdktUL7.js +33 -0
- package/dist/blockDiagram-VD42YOAC-CmPMJI6H.js +2265 -0
- package/dist/breadcrumbs.json +1202 -0
- package/dist/c4Diagram-YG6GDRKO-BtTnslb7.js +1581 -0
- package/dist/channel-B9C38GUl.js +5 -0
- package/dist/chunk-4BX2VUAB-BLcImAIn.js +9 -0
- package/dist/chunk-55IACEB6-Cd_NYMQ6.js +8 -0
- package/dist/chunk-B4BG7PRW-C5mt8tWU.js +1376 -0
- package/dist/chunk-DI55MBZ5-BliqH_si.js +1382 -0
- package/dist/chunk-FMBD7UC4-D8OxNP20.js +19 -0
- package/dist/chunk-QN33PNHL-DBPrGAkF.js +20 -0
- package/dist/chunk-QZHKN3VN-Ce2k3n1F.js +15 -0
- package/dist/chunk-TZMSLE5B-BB3w_n2J.js +64 -0
- package/dist/classDiagram-2ON5EDUG-BJg1PJs9.js +16 -0
- package/dist/classDiagram-v2-WZHVMYZB-BJg1PJs9.js +16 -0
- package/dist/client_types-BmacnRwO.js +17 -0
- package/dist/client_types-Cu_f02j7.js +17 -0
- package/dist/clone-DZF-mLM1.js +8 -0
- package/dist/components/Docs.d.ts +5 -0
- package/dist/components/DocsBreadcrumbs.d.ts +10 -0
- package/dist/components/DocsErrorBoundary.d.ts +21 -0
- package/dist/components/DocsPage.d.ts +10 -0
- package/dist/components/DocsSearch.d.ts +12 -0
- package/dist/components/DocsViewer.d.ts +11 -0
- package/dist/components/index.d.ts +6 -0
- package/dist/components/useDocsStyles.d.ts +1 -0
- package/dist/cose-bilkent-S5V4N54A-xEniAY-c.js +2608 -0
- package/dist/cytoscape.esm-CjI2IsL8.js +18735 -0
- package/dist/dagre-6UL2VRFP-DWEj74f8.js +446 -0
- package/dist/defaultLocale-BgPVtth8.js +171 -0
- package/dist/delegation_source-B8L65LAZ.js +17 -0
- package/dist/delegation_source-DBE0sh58.js +17 -0
- package/dist/diagram-PSM6KHXK-Z3KtWXiy.js +533 -0
- package/dist/diagram-QEK2KX5R-BVA9QmB8.js +221 -0
- package/dist/diagram-S2PKOQOG-BOmc_fL6.js +143 -0
- package/dist/docs/folder.d.ts +12 -0
- package/dist/docs/types.d.ts +12 -0
- package/dist/entraid-CPkATiHs.js +6 -0
- package/dist/entraid-CSwp8dMQ.js +6 -0
- package/dist/erDiagram-Q2GNP2WA-Blro_6F2.js +842 -0
- package/dist/faq-CqjYqwL1.js +8 -0
- package/dist/faq-TqD11_1a.js +8 -0
- package/dist/flowDiagram-NV44I4VS-BN9iLCEi.js +1627 -0
- package/dist/frontchannel_logout_uri-Bt6bvoBs.js +36 -0
- package/dist/frontchannel_logout_uri-DRGyFXRl.js +36 -0
- package/dist/ganttDiagram-JELNMOA3-CXLPJQlh.js +2670 -0
- package/dist/general--WqS-xp8.js +89 -0
- package/dist/general-B37q4SsA.js +63 -0
- package/dist/general-BCOYLf6V.js +152 -0
- package/dist/general-CQFRRoeE.js +63 -0
- package/dist/general-Dk7lWiBC.js +152 -0
- package/dist/general-QQfgnjEE.js +89 -0
- package/dist/gitGraph-F6HP7TQM-ChFlbGFG.js +5 -0
- package/dist/gitGraphDiagram-NY62KEGX-DXSPVlhd.js +712 -0
- package/dist/graph-dALvSPTP.js +381 -0
- package/dist/index-D_FT2Td-.js +25338 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +9 -0
- package/dist/info-NVLQJR56-BSQ5ueiP.js +5 -0
- package/dist/infoDiagram-WHAUD3N6-D0hbJwWb.js +24 -0
- package/dist/init-DjUOC4st.js +16 -0
- package/dist/integration_guide-BXkM8zJ-.js +7 -0
- package/dist/integration_guide-CLABphnS.js +313 -0
- package/dist/integration_guide-Ci8Nz8oL.js +313 -0
- package/dist/integration_guide-Ct8RYoMV.js +6 -0
- package/dist/integration_guide-DWfjt6Qk.js +6 -0
- package/dist/integration_guide-DrKTpPnR.js +6 -0
- package/dist/journeyDiagram-XKPGCS4Q-DTU9EVLJ.js +834 -0
- package/dist/kanban-definition-3W4ZIXB7-CcKx9EnU.js +721 -0
- package/dist/katex-C6SjTJMZ.js +11690 -0
- package/dist/layout-DUskCdLZ.js +1441 -0
- package/dist/linear-RKbqvfvG.js +259 -0
- package/dist/mermaid-parser.core-C-16ojim.js +15189 -0
- package/dist/min-CsCJm_uR.js +38 -0
- package/dist/mindmap-definition-VGOIOE7T-LpgPu_oq.js +787 -0
- package/dist/on_behalf_of-EcHpNqmZ.js +36 -0
- package/dist/on_behalf_of-qrlvHfcG.js +36 -0
- package/dist/ordinal-DfAQgscy.js +61 -0
- package/dist/overview-Bw11cTNo.js +21 -0
- package/dist/overview-ZreyAEkN.js +21 -0
- package/dist/packet-BFZMPI3H-CwJrUCZn.js +5 -0
- package/dist/pie-7BOR55EZ-WUF72bRP.js +5 -0
- package/dist/pieDiagram-ADFJNKIX-BRjx2vS_.js +161 -0
- package/dist/pkce-BkSKWYmh.js +34 -0
- package/dist/pkce-C3U_jCxQ.js +33 -0
- package/dist/post_logout_redirect_uri-BSzuTRwg.js +33 -0
- package/dist/post_logout_redirect_uri-BnhzB1De.js +33 -0
- package/dist/pseudonymous_login-B3oa6s2f.js +17 -0
- package/dist/pseudonymous_login-x98obOlL.js +17 -0
- package/dist/quadrantDiagram-AYHSOK5B-BOwjGYKH.js +1024 -0
- package/dist/radar-NHE76QYJ-DRN4buPP.js +5 -0
- package/dist/redirect_uri-Cnlv_2rt.js +38 -0
- package/dist/redirect_uri-DgNidm8d.js +38 -0
- package/dist/refresh_token_lifetime-DCzCzIyu.js +34 -0
- package/dist/refresh_token_lifetime-QcGf0aOG.js +34 -0
- package/dist/refresh_token_usage-C2LdxQHa.js +33 -0
- package/dist/refresh_token_usage-DXI98e4O.js +33 -0
- package/dist/requirementDiagram-UZGBJVZJ-KRDecAgT.js +852 -0
- package/dist/sankeyDiagram-TZEHDZUN-MKxbwv35.js +810 -0
- package/dist/search-index.json +450 -0
- package/dist/sequenceDiagram-WL72ISMW-DEo0cUN3.js +2518 -0
- package/dist/sso-BuAlvelZ.js +79 -0
- package/dist/sso-DYMIpoUd.js +78 -0
- package/dist/stateDiagram-FKZM4ZOC-CaTGomRc.js +263 -0
- package/dist/stateDiagram-v2-4FDKWEC3-l4p7_3uG.js +16 -0
- package/dist/timeline-definition-IT6M3QCI-ChX0PfWC.js +799 -0
- package/dist/token_lifetimes-Cp22x6RM.js +17 -0
- package/dist/token_lifetimes-CwzcMEnb.js +17 -0
- package/dist/token_type-B8DCg80j.js +17 -0
- package/dist/token_type-C7Y04-Fc.js +17 -0
- package/dist/treemap-KMMF4GRG-DNEhU-LQ.js +5 -0
- package/dist/user_involvement-4nbn_fQ7.js +17 -0
- package/dist/user_involvement-COT572uK.js +17 -0
- package/dist/visibility-BSqCGXMv.js +17 -0
- package/dist/visibility-CidZ07d9.js +17 -0
- package/dist/xychartDiagram-PRI3JC2R-CBQAJ13t.js +1340 -0
- package/package.json +60 -0
|
@@ -0,0 +1,381 @@
|
|
|
1
|
+
import { aP as T, aQ as C, aR as z, aS as R, aT as S, aU as k, aV as V, aW as L, aX as K, aY as j, aZ as ee, a_ as te, a$ as re, b0 as se, b1 as ne, b2 as ie, b3 as ae, aE as oe, b4 as ue, b5 as he, b6 as y, b7 as $, b8 as v } from "./index-D_FT2Td-.js";
|
|
2
|
+
import { k as d, g as Y, s as de, e as ce, f as fe, h as ge, j as le, c as be, l as _e, b as pe, m, n as g, r as ye } from "./_baseUniq-FW_jgYGR.js";
|
|
3
|
+
function me(t, e) {
|
|
4
|
+
return t && T(e, d(e), t);
|
|
5
|
+
}
|
|
6
|
+
function je(t, e) {
|
|
7
|
+
return t && T(e, C(e), t);
|
|
8
|
+
}
|
|
9
|
+
function Te(t, e) {
|
|
10
|
+
return T(t, Y(t), e);
|
|
11
|
+
}
|
|
12
|
+
var Oe = Object.getOwnPropertySymbols, W = Oe ? function(t) {
|
|
13
|
+
for (var e = []; t; )
|
|
14
|
+
ce(e, Y(t)), t = z(t);
|
|
15
|
+
return e;
|
|
16
|
+
} : de;
|
|
17
|
+
function Ee(t, e) {
|
|
18
|
+
return T(t, W(t), e);
|
|
19
|
+
}
|
|
20
|
+
function Ae(t) {
|
|
21
|
+
return fe(t, C, W);
|
|
22
|
+
}
|
|
23
|
+
var Ce = Object.prototype, Le = Ce.hasOwnProperty;
|
|
24
|
+
function we(t) {
|
|
25
|
+
var e = t.length, r = new t.constructor(e);
|
|
26
|
+
return e && typeof t[0] == "string" && Le.call(t, "index") && (r.index = t.index, r.input = t.input), r;
|
|
27
|
+
}
|
|
28
|
+
function Ne(t, e) {
|
|
29
|
+
var r = e ? R(t.buffer) : t.buffer;
|
|
30
|
+
return new t.constructor(r, t.byteOffset, t.byteLength);
|
|
31
|
+
}
|
|
32
|
+
var Pe = /\w*$/;
|
|
33
|
+
function Fe(t) {
|
|
34
|
+
var e = new t.constructor(t.source, Pe.exec(t));
|
|
35
|
+
return e.lastIndex = t.lastIndex, e;
|
|
36
|
+
}
|
|
37
|
+
var I = S ? S.prototype : void 0, D = I ? I.valueOf : void 0;
|
|
38
|
+
function Se(t) {
|
|
39
|
+
return D ? Object(D.call(t)) : {};
|
|
40
|
+
}
|
|
41
|
+
var $e = "[object Boolean]", ve = "[object Date]", Ie = "[object Map]", De = "[object Number]", Me = "[object RegExp]", Ue = "[object Set]", Ge = "[object String]", xe = "[object Symbol]", Be = "[object ArrayBuffer]", Re = "[object DataView]", Ve = "[object Float32Array]", Ke = "[object Float64Array]", Ye = "[object Int8Array]", We = "[object Int16Array]", qe = "[object Int32Array]", He = "[object Uint8Array]", Qe = "[object Uint8ClampedArray]", Xe = "[object Uint16Array]", Ze = "[object Uint32Array]";
|
|
42
|
+
function Je(t, e, r) {
|
|
43
|
+
var s = t.constructor;
|
|
44
|
+
switch (e) {
|
|
45
|
+
case Be:
|
|
46
|
+
return R(t);
|
|
47
|
+
case $e:
|
|
48
|
+
case ve:
|
|
49
|
+
return new s(+t);
|
|
50
|
+
case Re:
|
|
51
|
+
return Ne(t, r);
|
|
52
|
+
case Ve:
|
|
53
|
+
case Ke:
|
|
54
|
+
case Ye:
|
|
55
|
+
case We:
|
|
56
|
+
case qe:
|
|
57
|
+
case He:
|
|
58
|
+
case Qe:
|
|
59
|
+
case Xe:
|
|
60
|
+
case Ze:
|
|
61
|
+
return k(t, r);
|
|
62
|
+
case Ie:
|
|
63
|
+
return new s();
|
|
64
|
+
case De:
|
|
65
|
+
case Ge:
|
|
66
|
+
return new s(t);
|
|
67
|
+
case Me:
|
|
68
|
+
return Fe(t);
|
|
69
|
+
case Ue:
|
|
70
|
+
return new s();
|
|
71
|
+
case xe:
|
|
72
|
+
return Se(t);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
var ze = "[object Map]";
|
|
76
|
+
function ke(t) {
|
|
77
|
+
return V(t) && L(t) == ze;
|
|
78
|
+
}
|
|
79
|
+
var M = j && j.isMap, et = M ? K(M) : ke, tt = "[object Set]";
|
|
80
|
+
function rt(t) {
|
|
81
|
+
return V(t) && L(t) == tt;
|
|
82
|
+
}
|
|
83
|
+
var U = j && j.isSet, st = U ? K(U) : rt, nt = 1, it = 2, at = 4, q = "[object Arguments]", ot = "[object Array]", ut = "[object Boolean]", ht = "[object Date]", dt = "[object Error]", H = "[object Function]", ct = "[object GeneratorFunction]", ft = "[object Map]", gt = "[object Number]", Q = "[object Object]", lt = "[object RegExp]", bt = "[object Set]", _t = "[object String]", pt = "[object Symbol]", yt = "[object WeakMap]", mt = "[object ArrayBuffer]", jt = "[object DataView]", Tt = "[object Float32Array]", Ot = "[object Float64Array]", Et = "[object Int8Array]", At = "[object Int16Array]", Ct = "[object Int32Array]", Lt = "[object Uint8Array]", wt = "[object Uint8ClampedArray]", Nt = "[object Uint16Array]", Pt = "[object Uint32Array]", o = {};
|
|
84
|
+
o[q] = o[ot] = o[mt] = o[jt] = o[ut] = o[ht] = o[Tt] = o[Ot] = o[Et] = o[At] = o[Ct] = o[ft] = o[gt] = o[Q] = o[lt] = o[bt] = o[_t] = o[pt] = o[Lt] = o[wt] = o[Nt] = o[Pt] = !0;
|
|
85
|
+
o[dt] = o[H] = o[yt] = !1;
|
|
86
|
+
function O(t, e, r, s, n, a) {
|
|
87
|
+
var i, u = e & nt, h = e & it, Z = e & at;
|
|
88
|
+
if (i !== void 0)
|
|
89
|
+
return i;
|
|
90
|
+
if (!ee(t))
|
|
91
|
+
return t;
|
|
92
|
+
var w = oe(t);
|
|
93
|
+
if (w) {
|
|
94
|
+
if (i = we(t), !u)
|
|
95
|
+
return te(t, i);
|
|
96
|
+
} else {
|
|
97
|
+
var b = L(t), N = b == H || b == ct;
|
|
98
|
+
if (re(t))
|
|
99
|
+
return se(t, u);
|
|
100
|
+
if (b == Q || b == q || N && !n) {
|
|
101
|
+
if (i = h || N ? {} : ne(t), !u)
|
|
102
|
+
return h ? Ee(t, je(i, t)) : Te(t, me(i, t));
|
|
103
|
+
} else {
|
|
104
|
+
if (!o[b])
|
|
105
|
+
return n ? t : {};
|
|
106
|
+
i = Je(t, b, u);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
a || (a = new ie());
|
|
110
|
+
var P = a.get(t);
|
|
111
|
+
if (P)
|
|
112
|
+
return P;
|
|
113
|
+
a.set(t, i), st(t) ? t.forEach(function(c) {
|
|
114
|
+
i.add(O(c, e, r, c, t, a));
|
|
115
|
+
}) : et(t) && t.forEach(function(c, f) {
|
|
116
|
+
i.set(f, O(c, e, r, f, t, a));
|
|
117
|
+
});
|
|
118
|
+
var J = Z ? h ? Ae : ge : h ? C : d, F = w ? void 0 : J(t);
|
|
119
|
+
return le(F || t, function(c, f) {
|
|
120
|
+
F && (f = c, c = t[f]), ae(i, f, O(c, e, r, f, t, a));
|
|
121
|
+
}), i;
|
|
122
|
+
}
|
|
123
|
+
function Ft(t, e) {
|
|
124
|
+
return be(e, function(r) {
|
|
125
|
+
return t[r];
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
function E(t) {
|
|
129
|
+
return t == null ? [] : Ft(t, d(t));
|
|
130
|
+
}
|
|
131
|
+
function _(t) {
|
|
132
|
+
return t === void 0;
|
|
133
|
+
}
|
|
134
|
+
var St = ue(function(t) {
|
|
135
|
+
return _e(pe(t, 1, he, !0));
|
|
136
|
+
}), $t = "\0", l = "\0", G = "";
|
|
137
|
+
class X {
|
|
138
|
+
constructor(e = {}) {
|
|
139
|
+
this._isDirected = Object.prototype.hasOwnProperty.call(e, "directed") ? e.directed : !0, this._isMultigraph = Object.prototype.hasOwnProperty.call(e, "multigraph") ? e.multigraph : !1, this._isCompound = Object.prototype.hasOwnProperty.call(e, "compound") ? e.compound : !1, this._label = void 0, this._defaultNodeLabelFn = y(void 0), this._defaultEdgeLabelFn = y(void 0), this._nodes = {}, this._isCompound && (this._parent = {}, this._children = {}, this._children[l] = {}), this._in = {}, this._preds = {}, this._out = {}, this._sucs = {}, this._edgeObjs = {}, this._edgeLabels = {};
|
|
140
|
+
}
|
|
141
|
+
/* === Graph functions ========= */
|
|
142
|
+
isDirected() {
|
|
143
|
+
return this._isDirected;
|
|
144
|
+
}
|
|
145
|
+
isMultigraph() {
|
|
146
|
+
return this._isMultigraph;
|
|
147
|
+
}
|
|
148
|
+
isCompound() {
|
|
149
|
+
return this._isCompound;
|
|
150
|
+
}
|
|
151
|
+
setGraph(e) {
|
|
152
|
+
return this._label = e, this;
|
|
153
|
+
}
|
|
154
|
+
graph() {
|
|
155
|
+
return this._label;
|
|
156
|
+
}
|
|
157
|
+
/* === Node functions ========== */
|
|
158
|
+
setDefaultNodeLabel(e) {
|
|
159
|
+
return $(e) || (e = y(e)), this._defaultNodeLabelFn = e, this;
|
|
160
|
+
}
|
|
161
|
+
nodeCount() {
|
|
162
|
+
return this._nodeCount;
|
|
163
|
+
}
|
|
164
|
+
nodes() {
|
|
165
|
+
return d(this._nodes);
|
|
166
|
+
}
|
|
167
|
+
sources() {
|
|
168
|
+
var e = this;
|
|
169
|
+
return m(this.nodes(), function(r) {
|
|
170
|
+
return v(e._in[r]);
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
sinks() {
|
|
174
|
+
var e = this;
|
|
175
|
+
return m(this.nodes(), function(r) {
|
|
176
|
+
return v(e._out[r]);
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
setNodes(e, r) {
|
|
180
|
+
var s = arguments, n = this;
|
|
181
|
+
return g(e, function(a) {
|
|
182
|
+
s.length > 1 ? n.setNode(a, r) : n.setNode(a);
|
|
183
|
+
}), this;
|
|
184
|
+
}
|
|
185
|
+
setNode(e, r) {
|
|
186
|
+
return Object.prototype.hasOwnProperty.call(this._nodes, e) ? (arguments.length > 1 && (this._nodes[e] = r), this) : (this._nodes[e] = arguments.length > 1 ? r : this._defaultNodeLabelFn(e), this._isCompound && (this._parent[e] = l, this._children[e] = {}, this._children[l][e] = !0), this._in[e] = {}, this._preds[e] = {}, this._out[e] = {}, this._sucs[e] = {}, ++this._nodeCount, this);
|
|
187
|
+
}
|
|
188
|
+
node(e) {
|
|
189
|
+
return this._nodes[e];
|
|
190
|
+
}
|
|
191
|
+
hasNode(e) {
|
|
192
|
+
return Object.prototype.hasOwnProperty.call(this._nodes, e);
|
|
193
|
+
}
|
|
194
|
+
removeNode(e) {
|
|
195
|
+
if (Object.prototype.hasOwnProperty.call(this._nodes, e)) {
|
|
196
|
+
var r = (s) => this.removeEdge(this._edgeObjs[s]);
|
|
197
|
+
delete this._nodes[e], this._isCompound && (this._removeFromParentsChildList(e), delete this._parent[e], g(this.children(e), (s) => {
|
|
198
|
+
this.setParent(s);
|
|
199
|
+
}), delete this._children[e]), g(d(this._in[e]), r), delete this._in[e], delete this._preds[e], g(d(this._out[e]), r), delete this._out[e], delete this._sucs[e], --this._nodeCount;
|
|
200
|
+
}
|
|
201
|
+
return this;
|
|
202
|
+
}
|
|
203
|
+
setParent(e, r) {
|
|
204
|
+
if (!this._isCompound)
|
|
205
|
+
throw new Error("Cannot set parent in a non-compound graph");
|
|
206
|
+
if (_(r))
|
|
207
|
+
r = l;
|
|
208
|
+
else {
|
|
209
|
+
r += "";
|
|
210
|
+
for (var s = r; !_(s); s = this.parent(s))
|
|
211
|
+
if (s === e)
|
|
212
|
+
throw new Error("Setting " + r + " as parent of " + e + " would create a cycle");
|
|
213
|
+
this.setNode(r);
|
|
214
|
+
}
|
|
215
|
+
return this.setNode(e), this._removeFromParentsChildList(e), this._parent[e] = r, this._children[r][e] = !0, this;
|
|
216
|
+
}
|
|
217
|
+
_removeFromParentsChildList(e) {
|
|
218
|
+
delete this._children[this._parent[e]][e];
|
|
219
|
+
}
|
|
220
|
+
parent(e) {
|
|
221
|
+
if (this._isCompound) {
|
|
222
|
+
var r = this._parent[e];
|
|
223
|
+
if (r !== l)
|
|
224
|
+
return r;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
children(e) {
|
|
228
|
+
if (_(e) && (e = l), this._isCompound) {
|
|
229
|
+
var r = this._children[e];
|
|
230
|
+
if (r)
|
|
231
|
+
return d(r);
|
|
232
|
+
} else {
|
|
233
|
+
if (e === l)
|
|
234
|
+
return this.nodes();
|
|
235
|
+
if (this.hasNode(e))
|
|
236
|
+
return [];
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
predecessors(e) {
|
|
240
|
+
var r = this._preds[e];
|
|
241
|
+
if (r)
|
|
242
|
+
return d(r);
|
|
243
|
+
}
|
|
244
|
+
successors(e) {
|
|
245
|
+
var r = this._sucs[e];
|
|
246
|
+
if (r)
|
|
247
|
+
return d(r);
|
|
248
|
+
}
|
|
249
|
+
neighbors(e) {
|
|
250
|
+
var r = this.predecessors(e);
|
|
251
|
+
if (r)
|
|
252
|
+
return St(r, this.successors(e));
|
|
253
|
+
}
|
|
254
|
+
isLeaf(e) {
|
|
255
|
+
var r;
|
|
256
|
+
return this.isDirected() ? r = this.successors(e) : r = this.neighbors(e), r.length === 0;
|
|
257
|
+
}
|
|
258
|
+
filterNodes(e) {
|
|
259
|
+
var r = new this.constructor({
|
|
260
|
+
directed: this._isDirected,
|
|
261
|
+
multigraph: this._isMultigraph,
|
|
262
|
+
compound: this._isCompound
|
|
263
|
+
});
|
|
264
|
+
r.setGraph(this.graph());
|
|
265
|
+
var s = this;
|
|
266
|
+
g(this._nodes, function(i, u) {
|
|
267
|
+
e(u) && r.setNode(u, i);
|
|
268
|
+
}), g(this._edgeObjs, function(i) {
|
|
269
|
+
r.hasNode(i.v) && r.hasNode(i.w) && r.setEdge(i, s.edge(i));
|
|
270
|
+
});
|
|
271
|
+
var n = {};
|
|
272
|
+
function a(i) {
|
|
273
|
+
var u = s.parent(i);
|
|
274
|
+
return u === void 0 || r.hasNode(u) ? (n[i] = u, u) : u in n ? n[u] : a(u);
|
|
275
|
+
}
|
|
276
|
+
return this._isCompound && g(r.nodes(), function(i) {
|
|
277
|
+
r.setParent(i, a(i));
|
|
278
|
+
}), r;
|
|
279
|
+
}
|
|
280
|
+
/* === Edge functions ========== */
|
|
281
|
+
setDefaultEdgeLabel(e) {
|
|
282
|
+
return $(e) || (e = y(e)), this._defaultEdgeLabelFn = e, this;
|
|
283
|
+
}
|
|
284
|
+
edgeCount() {
|
|
285
|
+
return this._edgeCount;
|
|
286
|
+
}
|
|
287
|
+
edges() {
|
|
288
|
+
return E(this._edgeObjs);
|
|
289
|
+
}
|
|
290
|
+
setPath(e, r) {
|
|
291
|
+
var s = this, n = arguments;
|
|
292
|
+
return ye(e, function(a, i) {
|
|
293
|
+
return n.length > 1 ? s.setEdge(a, i, r) : s.setEdge(a, i), i;
|
|
294
|
+
}), this;
|
|
295
|
+
}
|
|
296
|
+
/*
|
|
297
|
+
* setEdge(v, w, [value, [name]])
|
|
298
|
+
* setEdge({ v, w, [name] }, [value])
|
|
299
|
+
*/
|
|
300
|
+
setEdge() {
|
|
301
|
+
var e, r, s, n, a = !1, i = arguments[0];
|
|
302
|
+
typeof i == "object" && i !== null && "v" in i ? (e = i.v, r = i.w, s = i.name, arguments.length === 2 && (n = arguments[1], a = !0)) : (e = i, r = arguments[1], s = arguments[3], arguments.length > 2 && (n = arguments[2], a = !0)), e = "" + e, r = "" + r, _(s) || (s = "" + s);
|
|
303
|
+
var u = p(this._isDirected, e, r, s);
|
|
304
|
+
if (Object.prototype.hasOwnProperty.call(this._edgeLabels, u))
|
|
305
|
+
return a && (this._edgeLabels[u] = n), this;
|
|
306
|
+
if (!_(s) && !this._isMultigraph)
|
|
307
|
+
throw new Error("Cannot set a named edge when isMultigraph = false");
|
|
308
|
+
this.setNode(e), this.setNode(r), this._edgeLabels[u] = a ? n : this._defaultEdgeLabelFn(e, r, s);
|
|
309
|
+
var h = vt(this._isDirected, e, r, s);
|
|
310
|
+
return e = h.v, r = h.w, Object.freeze(h), this._edgeObjs[u] = h, x(this._preds[r], e), x(this._sucs[e], r), this._in[r][u] = h, this._out[e][u] = h, this._edgeCount++, this;
|
|
311
|
+
}
|
|
312
|
+
edge(e, r, s) {
|
|
313
|
+
var n = arguments.length === 1 ? A(this._isDirected, arguments[0]) : p(this._isDirected, e, r, s);
|
|
314
|
+
return this._edgeLabels[n];
|
|
315
|
+
}
|
|
316
|
+
hasEdge(e, r, s) {
|
|
317
|
+
var n = arguments.length === 1 ? A(this._isDirected, arguments[0]) : p(this._isDirected, e, r, s);
|
|
318
|
+
return Object.prototype.hasOwnProperty.call(this._edgeLabels, n);
|
|
319
|
+
}
|
|
320
|
+
removeEdge(e, r, s) {
|
|
321
|
+
var n = arguments.length === 1 ? A(this._isDirected, arguments[0]) : p(this._isDirected, e, r, s), a = this._edgeObjs[n];
|
|
322
|
+
return a && (e = a.v, r = a.w, delete this._edgeLabels[n], delete this._edgeObjs[n], B(this._preds[r], e), B(this._sucs[e], r), delete this._in[r][n], delete this._out[e][n], this._edgeCount--), this;
|
|
323
|
+
}
|
|
324
|
+
inEdges(e, r) {
|
|
325
|
+
var s = this._in[e];
|
|
326
|
+
if (s) {
|
|
327
|
+
var n = E(s);
|
|
328
|
+
return r ? m(n, function(a) {
|
|
329
|
+
return a.v === r;
|
|
330
|
+
}) : n;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
outEdges(e, r) {
|
|
334
|
+
var s = this._out[e];
|
|
335
|
+
if (s) {
|
|
336
|
+
var n = E(s);
|
|
337
|
+
return r ? m(n, function(a) {
|
|
338
|
+
return a.w === r;
|
|
339
|
+
}) : n;
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
nodeEdges(e, r) {
|
|
343
|
+
var s = this.inEdges(e, r);
|
|
344
|
+
if (s)
|
|
345
|
+
return s.concat(this.outEdges(e, r));
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
X.prototype._nodeCount = 0;
|
|
349
|
+
X.prototype._edgeCount = 0;
|
|
350
|
+
function x(t, e) {
|
|
351
|
+
t[e] ? t[e]++ : t[e] = 1;
|
|
352
|
+
}
|
|
353
|
+
function B(t, e) {
|
|
354
|
+
--t[e] || delete t[e];
|
|
355
|
+
}
|
|
356
|
+
function p(t, e, r, s) {
|
|
357
|
+
var n = "" + e, a = "" + r;
|
|
358
|
+
if (!t && n > a) {
|
|
359
|
+
var i = n;
|
|
360
|
+
n = a, a = i;
|
|
361
|
+
}
|
|
362
|
+
return n + G + a + G + (_(s) ? $t : s);
|
|
363
|
+
}
|
|
364
|
+
function vt(t, e, r, s) {
|
|
365
|
+
var n = "" + e, a = "" + r;
|
|
366
|
+
if (!t && n > a) {
|
|
367
|
+
var i = n;
|
|
368
|
+
n = a, a = i;
|
|
369
|
+
}
|
|
370
|
+
var u = { v: n, w: a };
|
|
371
|
+
return s && (u.name = s), u;
|
|
372
|
+
}
|
|
373
|
+
function A(t, e) {
|
|
374
|
+
return p(t, e.v, e.w, e.name);
|
|
375
|
+
}
|
|
376
|
+
export {
|
|
377
|
+
X as G,
|
|
378
|
+
O as b,
|
|
379
|
+
_ as i,
|
|
380
|
+
E as v
|
|
381
|
+
};
|