Codota Logo
slib.graph.utils
Code IndexAdd Codota to your IDE (free)

How to use slib.graph.utils

Best Java code snippets using slib.graph.utils (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: com.github.sharispe/slib-graph-algo

public RVF_TAX(G g, Direction dir) {
  super(g, new WalkConstraintGeneric(RDFS.SUBCLASSOF, dir));
}
origin: sharispe/slib

  public static WalkConstraint copy(WalkConstraint walkConstraint) {

    WalkConstraintGeneric newwc = new WalkConstraintGeneric();
    newwc.addAcceptedTraversal(walkConstraint.getAcceptedWalks_DIR_IN(), Direction.IN);
    newwc.addAcceptedTraversal(walkConstraint.getAcceptedWalks_DIR_OUT(), Direction.OUT);
    newwc.addAcceptedTraversal(walkConstraint.getAcceptedWalks_DIR_BOTH(), Direction.BOTH);
    
    return newwc;

  }
}
origin: sharispe/slib

public RVF_TAX(G g, Direction dir) {
  super(g, new WalkConstraintGeneric(RDFS.SUBCLASSOF, dir));
}
origin: com.github.sharispe/slib-graph-utils

  public static WalkConstraint copy(WalkConstraint walkConstraint) {

    WalkConstraintGeneric newwc = new WalkConstraintGeneric();
    newwc.addAcceptedTraversal(walkConstraint.getAcceptedWalks_DIR_IN(), Direction.IN);
    newwc.addAcceptedTraversal(walkConstraint.getAcceptedWalks_DIR_OUT(), Direction.OUT);
    newwc.addAcceptedTraversal(walkConstraint.getAcceptedWalks_DIR_BOTH(), Direction.BOTH);
    
    return newwc;

  }
}
origin: com.github.sharispe/slib-graph-algo

/**
 * @param g
 * @param root
 * @return true if the graph contains a taxonomic graph which is rooted by a
 * unique vertex.
 * @throws SLIB_Ex_Critic
 */
public boolean isUniqueRootedTaxonomicDag(G g, URI root) throws SLIB_Ex_Critic {
  WalkConstraint wc = new WalkConstraintGeneric(RDFS.SUBCLASSOF, Direction.IN);
  return isUniqueRootedDagRoot(g, root, wc);
}
origin: com.github.sharispe/slib-graph-algo

/**
 * Return the vertices which root the taxonomic graph.
 *
 * @param g
 * @return the vertices which can be considered as a root, i.e. all the
 * vertices which are not subsumed by an other vertex through a taxonomic
 * relationship.
 */
public Set<URI> getTaxonomicRoots(G g) {
  return getDAGRoots(g, new WalkConstraintGeneric(RDFS.SUBCLASSOF, Direction.OUT));
}
origin: com.github.sharispe/slib-graph-algo

/**
 *
 * @param graph
 * @return true if the graph contains a taxonomic graph.
 * @throws SLIB_Ex_Critic
 */
public boolean containsTaxonomicDag(G graph) throws SLIB_Ex_Critic {
  WalkConstraint wct = new WalkConstraintGeneric(RDFS.SUBCLASSOF, Direction.IN);
  return isDag(graph, wct);
}
origin: sharispe/slib

/**
 *
 * @param graph
 * @return true if the graph contains a taxonomic graph.
 * @throws SLIB_Ex_Critic
 */
public boolean containsTaxonomicDag(G graph) throws SLIB_Ex_Critic {
  WalkConstraint wct = new WalkConstraintGeneric(RDFS.SUBCLASSOF, Direction.IN);
  return isDag(graph, wct);
}
origin: com.github.sharispe/slib-graph-algo

/**
 *
 * @param graph
 * @return true if the graph contains a taxonomic graph.
 * @throws SLIB_Ex_Critic
 */
public boolean containsTaxonomicDag(G graph) throws SLIB_Ex_Critic {
  WalkConstraint wct = new WalkConstraintGeneric(RDFS.SUBCLASSOF, Direction.IN);
  return isDag(graph, wct);
}
origin: com.github.sharispe/slib-graph-algo

/**
 * Return the vertices which root the taxonomic graph.
 *
 * @param g
 * @return the vertices which can be considered as a root, i.e. all the
 * vertices which are not subsumed by an other vertex through a taxonomic
 * relationship.
 */
public Set<URI> getTaxonomicRoots(G g) {
  return getDAGRoots(g, new WalkConstraintGeneric(RDFS.SUBCLASSOF, Direction.OUT));
}
origin: com.github.sharispe/slib-graph-algo

/**
 * @param g
 * @param root
 * @return true if the graph contains a taxonomic graph which is rooted by a
 * unique vertex.
 * @throws SLIB_Ex_Critic
 */
public boolean isUniqueRootedTaxonomicDag(G g, URI root) throws SLIB_Ex_Critic {
  WalkConstraint wc = new WalkConstraintGeneric(RDFS.SUBCLASSOF, Direction.IN);
  return isUniqueRootedDagRoot(g, root, wc);
}
origin: sharispe/slib

/**
 *
 * @param graph
 * @return true if the graph contains a taxonomic graph.
 * @throws SLIB_Ex_Critic
 */
public boolean containsTaxonomicDag(G graph) throws SLIB_Ex_Critic {
  WalkConstraint wct = new WalkConstraintGeneric(RDFS.SUBCLASSOF, Direction.IN);
  return isDag(graph, wct);
}
origin: sharispe/slib

/**
 * Return the vertices which root the taxonomic graph.
 *
 * @param g
 * @return the vertices which can be considered as a root, i.e. all the
 * vertices which are not subsumed by an other vertex through a taxonomic
 * relationship.
 */
public Set<URI> getTaxonomicRoots(G g) {
  return getDAGRoots(g, new WalkConstraintGeneric(RDFS.SUBCLASSOF, Direction.OUT));
}
origin: sharispe/slib

/**
 * @param g
 * @param root
 * @return true if the graph contains a taxonomic graph which is rooted by a
 * unique vertex.
 * @throws SLIB_Ex_Critic
 */
public boolean isUniqueRootedTaxonomicDag(G g, URI root) throws SLIB_Ex_Critic {
  WalkConstraint wc = new WalkConstraintGeneric(RDFS.SUBCLASSOF, Direction.IN);
  return isUniqueRootedDagRoot(g, root, wc);
}
origin: sharispe/slib

/**
 * Return the vertices which root the taxonomic graph.
 *
 * @param g
 * @return the vertices which can be considered as a root, i.e. all the
 * vertices which are not subsumed by an other vertex through a taxonomic
 * relationship.
 */
public Set<URI> getTaxonomicRoots(G g) {
  return getDAGRoots(g, new WalkConstraintGeneric(RDFS.SUBCLASSOF, Direction.OUT));
}
origin: sharispe/slib

/**
 * @param g
 * @param root
 * @return true if the graph contains a taxonomic graph which is rooted by a
 * unique vertex.
 * @throws SLIB_Ex_Critic
 */
public boolean isUniqueRootedTaxonomicDag(G g, URI root) throws SLIB_Ex_Critic {
  WalkConstraint wc = new WalkConstraintGeneric(RDFS.SUBCLASSOF, Direction.IN);
  return isUniqueRootedDagRoot(g, root, wc);
}
origin: com.github.sharispe/slib-graph-algo

  /**
   * Root the underlying taxonomic DAG of the specified graph.
   *
   * @param g 
   * @param rootUri 
   * @return the URI of the root
   * @throws SLIB_Ex_Critic 
   */
  public static URI rootUnderlyingTaxonomicDAG(G g, URI rootUri) throws SLIB_Ex_Critic {

    Logger logger = LoggerFactory.getLogger(RooterDAG.class);
    logger.info("Rooting taxonomic Graph using " + rootUri);
    ValidatorDAG validator = new ValidatorDAG();

    if (!validator.containsTaxonomicDagWithUniqueRoot(g)) {
      return rootUnderlyingDAG(g, rootUri, new WalkConstraintGeneric(RDFS.SUBCLASSOF,Direction.OUT),true);
    } else {
      return validator.getUniqueTaxonomicRoot(g);
    }
  }
}
origin: sharispe/slib

  /**
   * Root the underlying taxonomic DAG of the specified graph.
   *
   * @param g 
   * @param rootUri 
   * @return the URI of the root
   * @throws SLIB_Ex_Critic 
   */
  public static URI rootUnderlyingTaxonomicDAG(G g, URI rootUri) throws SLIB_Ex_Critic {

    Logger logger = LoggerFactory.getLogger(RooterDAG.class);
    logger.info("Rooting taxonomic Graph using " + rootUri);
    ValidatorDAG validator = new ValidatorDAG();

    if (!validator.containsTaxonomicDagWithUniqueRoot(g)) {
      return rootUnderlyingDAG(g, rootUri, new WalkConstraintGeneric(RDFS.SUBCLASSOF,Direction.OUT),true);
    } else {
      return validator.getUniqueTaxonomicRoot(g);
    }
  }
}
origin: com.github.sharispe/slib-graph-algo

  /**
   * Root the underlying taxonomic DAG of the specified graph.
   *
   * @param g 
   * @param rootUri 
   * @return the URI of the root
   * @throws SLIB_Ex_Critic 
   */
  public static URI rootUnderlyingTaxonomicDAG(G g, URI rootUri) throws SLIB_Ex_Critic {

    Logger logger = LoggerFactory.getLogger(RooterDAG.class);
    logger.info("Rooting taxonomic Graph using " + rootUri);
    ValidatorDAG validator = new ValidatorDAG();

    if (!validator.containsTaxonomicDagWithUniqueRoot(g)) {
      return rootUnderlyingDAG(g, rootUri, new WalkConstraintGeneric(RDFS.SUBCLASSOF,Direction.OUT),true);
    } else {
      return validator.getUniqueTaxonomicRoot(g);
    }
  }
}
origin: sharispe/slib

  /**
   * Root the underlying taxonomic DAG of the specified graph.
   *
   * @param g 
   * @param rootUri 
   * @return the URI of the root
   * @throws SLIB_Ex_Critic 
   */
  public static URI rootUnderlyingTaxonomicDAG(G g, URI rootUri) throws SLIB_Ex_Critic {

    Logger logger = LoggerFactory.getLogger(RooterDAG.class);
    logger.info("Rooting taxonomic Graph using " + rootUri);
    ValidatorDAG validator = new ValidatorDAG();

    if (!validator.containsTaxonomicDagWithUniqueRoot(g)) {
      return rootUnderlyingDAG(g, rootUri, new WalkConstraintGeneric(RDFS.SUBCLASSOF,Direction.OUT),true);
    } else {
      return validator.getUniqueTaxonomicRoot(g);
    }
  }
}
slib.graph.utils

Most used classes

  • WalkConstraintGeneric
    Class used to facilitate the use of WalkConstraint over graph.
  • WalkConstraintUtils
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now