// Generated by Haxe 4.3.3
package graph;

import haxe.root.*;

@SuppressWarnings(value={"rawtypes", "unchecked"})
public class Positioner_orderNodes_45__Fun<T> extends haxe.lang.Function
{
	public Positioner_orderNodes_45__Fun()
	{
		//line 45 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/graph/Positioner.hx"
		super(2, 1);
	}
	
	
	@Override public double __hx_invoke2_f(double __fn_float1, java.lang.Object __fn_dyn1, double __fn_float2, java.lang.Object __fn_dyn2)
	{
		//line 45 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/graph/Positioner.hx"
		java.lang.Object n2 = ( (( __fn_dyn2 == haxe.lang.Runtime.undefined )) ? (((java.lang.Object) (__fn_float2) )) : (((java.lang.Object) (__fn_dyn2) )) );
		//line 45 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/graph/Positioner.hx"
		java.lang.Object n1 = ( (( __fn_dyn1 == haxe.lang.Runtime.undefined )) ? (((java.lang.Object) (__fn_float1) )) : (((java.lang.Object) (__fn_dyn1) )) );
		//line 45 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/graph/Positioner.hx"
		if (( ((haxe.root.Array<java.lang.Object>) (haxe.lang.Runtime.getField(n1, "links", true)) ).length == ((haxe.root.Array<java.lang.Object>) (haxe.lang.Runtime.getField(n2, "links", true)) ).length )) 
		{
			//line 45 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/graph/Positioner.hx"
			return ((double) (0) );
		}
		else
		{
			//line 45 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/graph/Positioner.hx"
			if (( ((haxe.root.Array<java.lang.Object>) (haxe.lang.Runtime.getField(n1, "links", true)) ).length > ((haxe.root.Array<java.lang.Object>) (haxe.lang.Runtime.getField(n2, "links", true)) ).length )) 
			{
				//line 45 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/graph/Positioner.hx"
				return ((double) (-1) );
			}
			else
			{
				//line 45 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/graph/Positioner.hx"
				return ((double) (1) );
			}
			
		}
		
	}
	
	
}


