pysnt.analysis.graph package#

This module provides convenient access to SNT’s graph analysis classes.

get_available_classes() List[str][source]#

Get list of all available graph analysis classes.

This includes both curated classes (always loaded) and extended classes (loaded on-demand). Extended classes are discovered if not already loaded.

Returns:

List of available class names.

Return type:

List[str]

get_class(class_name: str) Any[source]#

Get a specific graph analysis class by name.

This method provides access to both curated and extended classes. Extended classes are discovered and loaded on first access.

Parameters:

class_name (str) – Name of the class to retrieve.

Returns:

The requested SNT graph analysis class.

Return type:

Java class

Raises:
  • KeyError – If the class is not available.

  • RuntimeError – If the JVM has not been started.

list_classes()[source]#

Print all available graph analysis classes organized by tier.

get_curated_classes() List[str][source]#

Get list of curated classes that are always available for direct import.

Returns:

List of curated class names.

Return type:

List[str]

get_extended_classes() List[str][source]#

Get list of extended classes available via get_class().

This will trigger discovery if not already done.

Returns:

List of extended class names.

Return type:

List[str]

class AnnotationGraph(*args, **kwargs)[source]#

Bases: object

Curated SNT class from analysis/graph package with method signatures.

Available for direct import after JVM initialization. Call pysnt.initialize() before using this class.

See analysis_graph_AnnotationGraph_javadoc.

__init__(*args, **kwargs)[source]#

Placeholder constructor.

class DirectedWeightedGraph(*args, **kwargs)[source]#

Bases: object

Curated SNT class from analysis/graph package with method signatures.

Available for direct import after JVM initialization. Call pysnt.initialize() before using this class.

See analysis_graph_DirectedWeightedGraph_javadoc.

__init__(*args, **kwargs)[source]#

Placeholder constructor.

class DirectedWeightedSubgraph(*args, **kwargs)[source]#

Bases: object

Curated SNT class from analysis/graph package with method signatures.

Available for direct import after JVM initialization. Call pysnt.initialize() before using this class.

See analysis_graph_DirectedWeightedSubgraph_javadoc.

__init__(*args, **kwargs)[source]#

Placeholder constructor.

class SNTGraph(*args, **kwargs)[source]#

Bases: object

Curated SNT class from analysis/graph package with method signatures.

Available for direct import after JVM initialization. Call pysnt.initialize() before using this class.

See analysis_graph_SNTGraph_javadoc.

__init__(*args, **kwargs)[source]#

Placeholder constructor.