package sudoku;

import common.graph.Graph;
import java.util.stream.Stream;

/**
 * <p>A subgraph of a sudoku puzzle.</p>
 * @author fiveham
 * @author fiveham
 *
 */
public interface Sudoku extends Graph<NodeSet<?,?>>{
	
  /**
   * <p>Returns true if this Sudoku is solved, false otherwise. A Sudoku is solved if all its
   * Facts contain only one truth-claim.</p>
   * @return true if this Sudoku is solved, false otherwise
   */
	public boolean isSolved();
	
  /**
   * <p>Returns a {@code Stream<Fact>} providing access to all of this {@code Sudoku}'s underlying
   * {@link common.graph.Graph Graph}'s Facts.</p>
   * @return a {@code Stream<Fact>} providing access to all of this {@code Sudoku}'s underlying
   * {@link common.graph.Graph Graph}'s Facts.
   */
	public Stream<Fact> factStream();
	
  /**
   * <p>Returns a Stream of the Claims in this Sudoku's underlying Graph.</p>
   * @return a Stream of the Claims in this Sudoku's underlying Graph.
   */
	public Stream<Claim> claimStream();
	
  /**
   * <p>Returns the fundamental order of this Sudoku. For a Puzzle, this is the square root of the 
   * {@link #sideLength() side length}.</p>
   * @return the fundamental order of this Sudoku
   */
	public int magnitude();
	
  /**
   * <p>Returns the square of the {@link #magnitude() magnitude}. FOr a Puzzle, this is length of a 
   * side of this puzzle.</p>
   * @return the square of the magnitude
   */
	public int sideLength();
}

@@ -82,16 +82,25 @@
  * %3Cp%3EA 
+graph or 
 subgraph
@@ -147,30 +147,8 @@
 ham%0A
- * @author fiveham%0A *%0A
  */%0A

update javadoc for Sudoku header