mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 09:12:09 +10:00
Merge branch 'undo'
This commit is contained in:
Binary file not shown.
@@ -24,6 +24,7 @@ import java.util.HashSet;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
import org.diylc.core.IDIYComponent;
|
import org.diylc.core.IDIYComponent;
|
||||||
|
|
||||||
public abstract class NetlistAnalyzer {
|
public abstract class NetlistAnalyzer {
|
||||||
@@ -54,6 +55,17 @@ public abstract class NetlistAnalyzer {
|
|||||||
return tree;
|
return tree;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// protected Tree removeRedundantElements(Tree tree) {
|
||||||
|
// List<Tree> children = tree.getChildren()
|
||||||
|
// .stream()
|
||||||
|
// .map(t -> removeRedundantElements(t))
|
||||||
|
// .collect(Collectors.toList());
|
||||||
|
// if (children.size() == 1) {
|
||||||
|
// Tree first = children.get(0);
|
||||||
|
// return first;
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
protected void connectNodes(Netlist netlist, Node nodeA, Node nodeB, List<Tree> concurrentPaths, Tree currentPath,
|
protected void connectNodes(Netlist netlist, Node nodeA, Node nodeB, List<Tree> concurrentPaths, Tree currentPath,
|
||||||
Set<Node> visited) {
|
Set<Node> visited) {
|
||||||
if (nodeA == nodeB) {
|
if (nodeA == nodeB) {
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user