UNPKG
ts-ds-tool
Version:
latest (0.1.5)
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
Data structure and algorithm of TypeScript
github.com/HaifengDu/ts-ds-tool
HaifengDu/ts-ds-tool
ts-ds-tool
/
resource
/
algorithms
/
graph
/
getEulerCircuit
/
getEulerCircuit.d.ts
5 lines
(4 loc)
•
265 B
TypeScript
View Raw
1
2
3
4
5
import
{
Graph
}
from
"../../../graph/Graph"
;
import
{
GraphEdge
}
from
"../../../graph/GraphEdge"
;
import
{
GraphVertex
}
from
"../../../graph/GraphVertex"
;
export
declare
function
getEulerCircuit<T>(
graph
:
Graph
<T>,
startVertex
?:
GraphVertex
<T>):
GraphEdge
<T>[];