// Path: src/main/java/com/github/vangj/jbayes/inf/exact/graph/lpd/Potential.java
// public class Potential {
// 
//   private final List<PotentialEntry> entries;
// 
//   public Potential() {
//     entries = new ArrayList<>();
//   }
// 
//   /**
//    * Finds matching potential entries to the specified one passed in.
//    *
//    * @param potentialEntry Potential entry.
//    * @return List of ootential entries.
//    */
//   public List<PotentialEntry> match(PotentialEntry potentialEntry) {
//     List<PotentialEntry> entries = new ArrayList<>();
//     for (PotentialEntry entry : this.entries) {
//       if (entry.match(potentialEntry)) {
//         entries.add(entry);
//       }
//     }
//     return entries;
//   }
// 
//   public List<PotentialEntry> entries() {
//     return entries;
//   }
// 
//   public Potential addEntry(PotentialEntry entry) {
//     entries.add(entry);
//     return this;
//   }
// 
//   @Override
//   public String toString() {
//     return entries.stream()
//         .map(PotentialEntry::toString)
//         .collect(Collectors.joining(System.lineSeparator()));
//   }
// }


import com.github.vangj.jbayes.inf.exact.graph.lpd.Potential;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.stream.Collectors;
package com.github.vangj.jbayes.inf.exact.graph;


/**
 * A node in a graph.
 */
public class Node extends Variable {

  private final List<Double> probs;
  private List<String> valueList;
// Path: src/main/java/com/github/vangj/jbayes/inf/exact/graph/lpd/Potential.java
// public class Potential {
// 
//   private final List<PotentialEntry> entries;
// 
//   public Potential() {
//     entries = new ArrayList<>();
//   }
// 
//   /**
//    * Finds matching potential entries to the specified one passed in.
//    *
//    * @param potentialEntry Potential entry.
//    * @return List of ootential entries.
//    */
//   public List<PotentialEntry> match(PotentialEntry potentialEntry) {
//     List<PotentialEntry> entries = new ArrayList<>();
//     for (PotentialEntry entry : this.entries) {
//       if (entry.match(potentialEntry)) {
//         entries.add(entry);
//       }
//     }
//     return entries;
//   }
// 
//   public List<PotentialEntry> entries() {
//     return entries;
//   }
// 
//   public Potential addEntry(PotentialEntry entry) {
//     entries.add(entry);
//     return this;
//   }
// 
//   @Override
//   public String toString() {
//     return entries.stream()
//         .map(PotentialEntry::toString)
//         .collect(Collectors.joining(System.lineSeparator()));
//   }
// }


// Path: src/main/java/com/github/vangj/jbayes/inf/exact/graph/Node.java
import com.github.vangj.jbayes.inf.exact.graph.lpd.Potential;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.stream.Collectors;

package com.github.vangj.jbayes.inf.exact.graph;


/**
 * A node in a graph.
 */
public class Node extends Variable {

  private final List<Double> probs;
  private List<String> valueList;
  private Potential potential;