scalax.collection.io

json

package json

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

The Graph4Scala-JSON-UserGuide is available at http://www.assembla.com/spaces/scala-graph/documents.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. json
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. type Descriptor[N] = json.descriptor.Descriptor[N]

  2. type EdgeDescriptor[N, E[X] <: UnDiEdge[X], +C <: EdgeCompanion[E]] = json.descriptor.EdgeDescriptor[N, E, C]

  3. type EdgeDescriptorBase[N, E[X] <: EdgeLikeIn[X], +C <: EdgeCompanionBase[E]] = json.descriptor.EdgeDescriptorBase[N, E, C]

  4. type HyperEdgeDescriptor[N, E[X] <: HyperEdge[X], +C <: HyperEdgeCompanion[E]] = json.descriptor.HyperEdgeDescriptor[N, E, C]

  5. final class JsonGraph[N, E[X] <: EdgeLikeIn[X]] extends AnyRef

  6. final class JsonGraphCoreCompanion[+G[N, E[X] <: EdgeLikeIn[X]] <: Graph[N, E[X]] with GraphLike[N, E[X], G]] extends AnyRef

  7. type LEdgeDescriptor[N, E[X] <: UnDiEdge[X] with LEdge[X], +C <: LEdgeCompanionBase[E], L <: AnyRef] = json.descriptor.LEdgeDescriptor[N, E, C, L]

  8. type LHyperEdgeDescriptor[N, E[X] <: LHyperEdge[X] with LEdge[X], +C <: LHyperEdgeCompanion[E], L <: AnyRef] = json.descriptor.LHyperEdgeDescriptor[N, E, C, L]

  9. type NodeDescriptor[N] = json.descriptor.NodeDescriptor[N]

  10. type WEdgeDescriptor[N, E[X] <: UnDiEdge[X] with WEdge[X], +C <: WEdgeCompanionBase[E]] = json.descriptor.WEdgeDescriptor[N, E, C]

  11. type WHyperEdgeDescriptor[N, E[X] <: WHyperEdge[X] with WEdge[X], +C <: WHyperEdgeCompanion[E]] = json.descriptor.WHyperEdgeDescriptor[N, E, C]

  12. type WLEdgeDescriptor[N, E[X] <: UnDiEdge[X] with WLEdge[X], +C <: WLEdgeCompanionBase[E], L <: AnyRef] = json.descriptor.WLEdgeDescriptor[N, E, C, L]

  13. type WLHyperEdgeDescriptor[N, E[X] <: WLHyperEdge[X] with WLEdge[X], +C <: WLHyperEdgeCompanion[E], L <: AnyRef] = json.descriptor.WLHyperEdgeDescriptor[N, E, C, L]

Value Members

  1. package descriptor

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

  2. package error

    Error/warning constants and message producing.

  3. package exp

    Export of graphs to JSON text.

  4. implicit def graph2JsonGraph[N, E[X] <: EdgeLikeIn[X]](graph: Graph[N, E]): JsonGraph[N, E]

    Enables calling graph.toJson with graph being a Graph instance.

  5. implicit def graphC2JsonGraphC[G[N, E[X] <: EdgeLikeIn[X]] <: Graph[N, E[X]] with GraphLike[N, E[X], G]](companion: GraphCoreCompanion[G]): JsonGraphCoreCompanion[G]

    Enables calling Graph.fromJson with Graph being any Graph companion object.

  6. package imp

    Import of JSON text into graphs including the steps a) parsing (extracting and checking all data from JSON texts relevant to Graph) and b) InputStream creation on the basis of parsing results in preparation of calling Graph.fromStream.

  7. def replacePlaceholders(source: String, params: Iterable[String], maxLength: Int = 50, paramPlaceholder: String = "{}"): String

    Replaces all occurrences of paramPlaceholder in source with the elements in params one by one.

    Replaces all occurrences of paramPlaceholder in source with the elements in params one by one. The result is guaranteed not to become longer than maxLength.

  8. package serializer

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

Inherited from AnyRef

Inherited from Any

Ungrouped