private void createAnimatedGraphWithAdditionNode(int viewTag,double firstValue,double secondValue){
  mNativeAnimatedNodesManager.createAnimatedNode(1,JavaOnlyMap.of("type","value","value",100d));
  mNativeAnimatedNodesManager.createAnimatedNode(2,JavaOnlyMap.of("type","value","value",1000d));
  mNativeAnimatedNodesManager.createAnimatedNode(3,JavaOnlyMap.of("type","addition","input",JavaOnlyArray.of(1,2)));
  mNativeAnimatedNodesManager.createAnimatedNode(4,JavaOnlyMap.of("type","style","style",JavaOnlyMap.of("translateX",3)));
  mNativeAnimatedNodesManager.createAnimatedNode(5,JavaOnlyMap.of("type","props","props",JavaOnlyMap.of("style",4)));
  mNativeAnimatedNodesManager.connectAnimatedNodes(1,3);
  mNativeAnimatedNodesManager.connectAnimatedNodes(2,3);
  mNativeAnimatedNodesManager.connectAnimatedNodes(3,4);
  mNativeAnimatedNodesManager.connectAnimatedNodes(4,5);
  mNativeAnimatedNodesManager.connectAnimatedNodeToView(5,50);
}

private void createAnimatedGraphWithAdditionNode ( int viewTag , double firstValue , double secondValue ) { mNativeAnimatedNodesManager . createAnimatedNode ( 1 , JavaOnlyMap . of ( "type" , "value" , "value" , 100d ) ) ; mNativeAnimatedNodesManager . createAnimatedNode ( 2 , JavaOnlyMap . of ( "type" , "value" , "value" , 1000d ) ) ; mNativeAnimatedNodesManager . createAnimatedNode ( 3 , JavaOnlyMap . of ( "type" , "addition" , "input" , JavaOnlyArray . of ( 1 , 2 ) ) ) ; mNativeAnimatedNodesManager . createAnimatedNode ( 4 , JavaOnlyMap . of ( "type" , "style" , "style" , JavaOnlyMap . of ( "translateX" , 3 ) ) ) ; mNativeAnimatedNodesManager . createAnimatedNode ( 5 , JavaOnlyMap . of ( "type" , "props" , "props" , JavaOnlyMap . of ( "style" , 4 ) ) ) ; mNativeAnimatedNodesManager . connectAnimatedNodes ( 1 , 3 ) ; mNativeAnimatedNodesManager . connectAnimatedNodes ( 2 , 3 ) ; mNativeAnimatedNodesManager . connectAnimatedNodes ( 3 , 4 ) ; mNativeAnimatedNodesManager . connectAnimatedNodes ( 4 , 5 ) ; mNativeAnimatedNodesManager . connectAnimatedNodeToView ( 5 , 50 ) ; }
creates a following graph of nodes : value ( 1 , firstvalue ) - - - - > add ( 3 ) - - - > style ( 4 ) - - - > props ( 5 ) - - - > view ( viewtag ) | value ( 2 , secondvalue ) - - + add ( 3 ) node maps to a " translatex " attribute of the style ( 4 ) node .
