Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
xieyuheng committed Jul 30, 2023
1 parent f7afaac commit 3b6bfd9
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/lang/graph/closeFreePorts.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Node } from "."
import * as Definitions from "../definitions"
import { Net } from "./Net"
import { Node } from "./Node"

export function closeFreePorts(net: Net): Node | undefined {
if (net.portStack.length === 0) {
Expand Down
3 changes: 2 additions & 1 deletion src/lang/graph/connect.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Net, Port } from "."
import { lookupRuleByPorts } from "../mod/lookupRuleByPorts"
import { Net } from "./Net"
import { Port } from "./Port"

export function connect(net: Net, start: Port, end: Port): void {
const rule = lookupRuleByPorts(net.mod, start, end)
Expand Down
2 changes: 1 addition & 1 deletion src/lang/graph/releaseFreePorts.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Node } from "."
import { InternalError } from "../errors"
import { Net } from "./Net"
import { Node } from "./Node"
import { removeEdge } from "./removeEdge"
import { removeNode } from "./removeNode"

Expand Down
3 changes: 2 additions & 1 deletion src/lang/graph/removeEdge.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Edge, Net } from "."
import { Edge } from "./Edge"
import { Net } from "./Net"

export function removeEdge(net: Net, edge: Edge): void {
const index = net.edges.indexOf(edge)
Expand Down
3 changes: 2 additions & 1 deletion src/lang/graph/removeNode.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Net, Node } from "."
import { Net } from "./Net"
import { Node } from "./Node"

export function removeNode(net: Net, node: Node): void {
const index = net.nodes.indexOf(node)
Expand Down

0 comments on commit 3b6bfd9

Please sign in to comment.