Packages

  • package root
    Definition Classes
    root
  • package scalax
    Definition Classes
    root
  • package collection
    Definition Classes
    scalax
  • package io
    Definition Classes
    collection
  • package json

    Facilitates populating graphs with nodes/edges from JSON text and exporting Graphinstances to JSON text.

    Facilitates populating graphs with nodes/edges from JSON text and exporting Graphinstances to JSON text.

    See also the Graph for Scala JSON User Guide.

    Definition Classes
    io
  • package descriptor

    These classes serve as meta-data controlling JSON import by fromJson and export by toJson.

    These classes serve as meta-data controlling JSON import by fromJson and export by toJson. Among all, the meta-data contain identifiers based on which JSON edges will be matched to edge classes and Graph-specific serializers to be involved.

    Definition Classes
    json
  • package predefined

    This package contains predefined edge descriptors for all basic/predefined edge types.

    This package contains predefined edge descriptors for all basic/predefined edge types. They may be used when defining json.descriptor.Descriptors for convenience. For instance,

    UnDi.descriptor[String](Some(new EdgeSerializer))

    is a shorthand for

    new EdgeDescriptor[String,UnDiEdge,UnDiEdge.type](UnDiEdge, Some(new EdgeSerializer))

    where predefined edge types named <edgeType>Edge map to predefined descriptors named <edgeType>.

  • Defaults
  • Descriptor
  • DiHyperEdgeDescriptor
  • EdgeDescriptor
  • EdgeDescriptorBase
  • GenEdgeDescriptor
  • HyperEdgeDescriptor
  • LDiHyperEdgeDescriptor
  • LEdgeDescriptor
  • LHyperEdgeDescriptor
  • Label
  • NodeDescriptor
  • SectionKeys
  • StringNodeDescriptor
  • TypeId
  • package error

    Error/warning constants and message producing.

    Error/warning constants and message producing.

    Definition Classes
    json
  • package exp

    Export of graphs to JSON text.

    Export of graphs to JSON text.

    Definition Classes
    json
  • package imp

    Import of JSON text into graphs including the steps

    Import of JSON text into graphs including the steps

    1. parsing (extracting and checking all data from JSON texts relevant to Graph) and
    2. InputStream creation on the basis of parsing results in preparation of calling Graph.fromStream.
    Definition Classes
    json
  • package serializer

    Lift-JSON Serializers that convert from/to unnamed JSON values and edge data containers (parameters) covering all predefined edge types.

    Lift-JSON Serializers that convert from/to unnamed JSON values and edge data containers (parameters) covering all predefined edge types. They allow to save space as default Lift-JSON serializers would require the JSON text to contain JFields for every node and edge.

    Definition Classes
    json

package descriptor

These classes serve as meta-data controlling JSON import by fromJson and export by toJson. Among all, the meta-data contain identifiers based on which JSON edges will be matched to edge classes and Graph-specific serializers to be involved.

Linear Supertypes
Content Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. descriptor
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Package Members

  1. package predefined

    This package contains predefined edge descriptors for all basic/predefined edge types.

    This package contains predefined edge descriptors for all basic/predefined edge types. They may be used when defining json.descriptor.Descriptors for convenience. For instance,

    UnDi.descriptor[String](Some(new EdgeSerializer))

    is a shorthand for

    new EdgeDescriptor[String,UnDiEdge,UnDiEdge.type](UnDiEdge, Some(new EdgeSerializer))

    where predefined edge types named <edgeType>Edge map to predefined descriptors named <edgeType>.

Type Members

  1. final class Descriptor[N] extends AnyRef

    Top level descriptor to be passed to Graph/JSON conversion methods, in particular to fromJson and toJson.

    Top level descriptor to be passed to Graph/JSON conversion methods, in particular to fromJson and toJson.

    N

    the type of graph nodes.

    Exceptions thrown

    `IllegalArgumentException` if any of the descriptor maps is empty.

  2. class DiHyperEdgeDescriptor[N, E <: AbstractDiHyperEdge[N]] extends EdgeDescriptorBase[N, E]

    Determines how to extract data of non-labeled directed hyperedges from a JValue and how to decompose such an edge to a JValue.

    Determines how to extract data of non-labeled directed hyperedges from a JValue and how to decompose such an edge to a JValue.

    Instances of this class must be passed as a constructor argument to a scalax.collection.io.json.descriptor.Descriptor either directly or indirectly by utilizing a predefined edge descriptor.

  3. class EdgeDescriptor[N, E <: AnyEdge[N]] extends EdgeDescriptorBase[N, E]

    Determines how to extract data of non-labeled edges from a JValue and how to decompose such an edge to a JValue.

    Determines how to extract data of non-labeled edges from a JValue and how to decompose such an edge to a JValue.

    Instances of this class must be passed as a constructor argument to a scalax.collection.io.json.descriptor.Descriptor either directly or indirectly by utilizing a predefined edge descriptor.

  4. sealed abstract class EdgeDescriptorBase[N, E <: Edge[N]] extends GenEdgeDescriptor[N]

    Base trait for any class *EdgeDescriptor.

  5. sealed abstract class GenEdgeDescriptor[N] extends TypeId

    Generic base trait for any *EdgeDescriptor excluding edge types to be used as type argument to collections containing edge descriptors of different types.

  6. class HyperEdgeDescriptor[N, E <: AbstractHyperEdge[N]] extends EdgeDescriptorBase[N, E]

    Determines how to extract data of non-labeled hyperedges from a JValue and how to decompose such an edge to a JValue.

    Determines how to extract data of non-labeled hyperedges from a JValue and how to decompose such an edge to a JValue.

    Instances of this class must be passed as a constructor argument to a scalax.collection.io.json.descriptor.Descriptor either directly or indirectly by utilizing a predefined edge descriptor.

  7. abstract class LDiHyperEdgeDescriptor[N, E <: AbstractDiHyperEdge[N], L] extends EdgeDescriptorBase[N, E] with Label[E]

    Determines how to extract data of labeled directed hyperedges from a JValue and how to decompose such an edge to a JValue.

    Determines how to extract data of labeled directed hyperedges from a JValue and how to decompose such an edge to a JValue.

    Instances of this class must be passed as a constructor argument to a scalax.collection.io.json.descriptor.Descriptor either directly or indirectly by utilizing a predefined edge descriptor.

  8. abstract class LEdgeDescriptor[N, E <: AnyEdge[N], L] extends EdgeDescriptorBase[N, E] with Label[E]

    Determines how to extract data of labeled edges from a JValue and how to decompose such an edge to a JValue.

    Determines how to extract data of labeled edges from a JValue and how to decompose such an edge to a JValue.

    Instances of this class must be passed as a constructor argument to a scalax.collection.io.json.descriptor.Descriptor either directly or indirectly by utilizing a predefined edge descriptor.

  9. abstract class LHyperEdgeDescriptor[N, E <: AbstractHyperEdge[N], L] extends EdgeDescriptorBase[N, E] with Label[E]

    Determines how to extract data of labeled hyperedges from a JValue and how to decompose such an edge to a JValue.

    Determines how to extract data of labeled hyperedges from a JValue and how to decompose such an edge to a JValue.

    Instances of this class must be passed as a constructor argument to a scalax.collection.io.json.descriptor.Descriptor either directly or indirectly by utilizing a predefined edge descriptor.

  10. trait Label[E <: Edge[_]] extends AnyRef
    Attributes
    protected
  11. abstract class NodeDescriptor[+N] extends TypeId

    Determines how to extract node data from a JValue and how to decompose the node to a JValue.

    Determines how to extract node data from a JValue and how to decompose the node to a JValue.

    N

    type of nodes described with this descriptor which either the same type or a subtype of the node type parameter of the targeted graph.

  12. case class SectionKeys(nodesId: String = "nodes", edgesId: String = "edges") extends Product with Serializable

    Contains string constants that are used as JSON keys to denote the node and edge sections in the JSON text.

    Contains string constants that are used as JSON keys to denote the node and edge sections in the JSON text.

    An individual instance of this class may be passed to Descriptor if non-default section id's are to be used.

  13. abstract class TypeId extends AnyRef

Value Members

  1. object Defaults
  2. object Descriptor
  3. object SectionKeys extends Serializable
  4. object StringNodeDescriptor extends NodeDescriptor[String]

    Node descriptor extracting a String from any JValue and decomposing nodes of any type to a JString.

    Node descriptor extracting a String from any JValue and decomposing nodes of any type to a JString. This object serves mainly test purposes.

Inherited from AnyRef

Inherited from Any

Ungrouped