source: ip/src/main/java/geniusweb/ip/ipSolver/Node.java@ 52

Last change on this file since 52 was 52, checked in by ruud, 14 months ago

Fixed small issues in domaineditor.

File size: 679 bytes
Line 
1package geniusweb.ip.ipSolver;
2
3import geniusweb.ip.general.IntegerPartition;
4
5/**
6 * an object of a node in the integer partition graph
7 */
8public class Node {
9 public Subspace subspace;
10 public IntegerPartition integerPartition;
11 public Edge[] edgesFromThisNode;
12 boolean tempFlag; // this is whenever the node needs to be marked for some
13 // reason
14 public int[] tempIntegerRoots; // for every integer "i", I keep track of its
15 // root, i.e., the integer that I kept
16 // splitting until I got "i"
17
18 public Node(Subspace subspace) {
19 this.subspace = subspace;
20 integerPartition = new IntegerPartition(subspace.integers);
21 edgesFromThisNode = null;
22 }
23}
Note: See TracBrowser for help on using the repository browser.