lib/edit.js
function pull_seeds(entity, test_p){
	each(entity.annotations(), function(ann){
	    
	    //console.log(ann.key(), ann.value_type(), ann.value());
	    
	    // Is it an evidence annotation.
	    if( ! test_p(ann) ){
		// Skip.
		//console.log('skip folding with failed test');
	    }else{
		//console.log('start folding with passed test');

		// If so, and the individual in question exists, it is
		// the jumping off point for the evidence folding
		// subgraph.
		var ref_node_id = ann.value();
		var ref_node = anchor.get_node(ref_node_id);
		if( ref_node ){
		    seeds[ref_node_id] = entity;
		}
	    }
	});
    }
function pull_seeds(entity, test_p){
	each(entity.annotations(), function(ann){
	    
	    //console.log(ann.key(), ann.value_type(), ann.value());
	    
	    // Is it an evidence annotation.
	    if( ! test_p(ann) ){
		// Skip.
		//console.log('skip folding with failed test');
	    }else{
		//console.log('start folding with passed test');

		// If so, and the individual in question exists, it is
		// the jumping off point for the evidence folding
		// subgraph.
		var ref_node_id = ann.value();
		var ref_node = anchor.get_node(ref_node_id);
		if( ref_node ){
		    seeds[ref_node_id] = entity;
		}
	    }
	});
    }
function pull_seeds ( entity , test_p ) { each ( entity . annotations ( ) , function ( ann ) { //console.log(ann.key(), ann.value_type(), ann.value()); // Is it an evidence annotation. if ( ! test_p ( ann ) ) { // Skip. //console.log('skip folding with failed test'); } else { //console.log('start folding with passed test'); // If so, and the individual in question exists, it is // the jumping off point for the evidence folding // subgraph. var ref_node_id = ann . value ( ) ; var ref_node = anchor . get_node ( ref_node_id ) ; if ( ref_node ) { seeds [ ref_node_id ] = entity ; } } } ) ; }
collect all possibilities here
collect all possibilities here