Skip to content

Instantly share code, notes, and snippets.

View antonkulaga's full-sized avatar

Anton Kulaga antonkulaga

View GitHub Profile
@antonkulaga
antonkulaga / gist:5496966
Created May 1, 2013 17:59
Scala-graph reveals another portion of scala-plugin bugs
package semantic.graph
import scala.Predef._
import scalax.collection.mutable.{Graph => MGraph}
import scalax.collection.GraphEdge._
import scalax.collection.edge._
import scalax.collection.mutable._
import scalax.collection.edge.Implicits._
@antonkulaga
antonkulaga / gist:5476511
Last active December 16, 2015 18:19
Intellij IDEA infers the type as "N" when I choose "add type annotation" or try to access one of its properties. But the real type here is Person
package semantic.graph
import scala.Predef._
import scalax.collection.mutable.{Graph => MGraph}
import scalax.collection.GraphEdge._
import scalax.collection.edge._
import scalax.collection.mutable._
import scalax.collection.edge.LBase._
import scalax.collection.edge.Implicits._
@antonkulaga
antonkulaga / gist:5473253
Last active December 16, 2015 17:49
I get:"scala: value kind is not a member of scalax.collection.edge.LDiEdge[semantic.graph.ConsoleGraphTester.Person] p.edges.map(e=>e.toEdgeIn).filter(e=>e.kind.equals("friend")).foreach{e=>println(e.toString())}" exception ^
package semantic.graph
import scala.Predef._
import scalax.collection.mutable.{Graph => MGraph}
import scalax.collection.GraphEdge._
import scalax.collection.edge._
import scalax.collection.mutable._
import scalax.collection.edge.LBase._
import scalax.collection.edge.Implicits._