function printNodeData(nodeList) {
            var nodeStr = '<table><tr><td>name</td>';
            var numNodes = nodeList.length;
            //lay the nodes out in a table
            for (var i = 0; i < metricColumns.length; i++) {
                nodeStr += '<td>' + metricColumns[i] + '</td>';
            }
            nodeStr += '</tr>';
            for (var i = 0; i < numNodes; i++) {
                for (var j = 0; j < metricColumns.length; j++) {
                    if (j == 0) {
                        nodeStr += '<tr><td>' + nodeList[i].data.frame.name + '</td><td>' + nodeList[i].data.metrics[metricColumns[j]] + '</td><td>';
                    }
                    else if (j == metricColumns.length - 1) {
                        nodeStr += nodeList[i].data.metrics[metricColumns[j]] + '</td></tr>';
                    }
                    else {
                        nodeStr += nodeList[i].data.metrics[metricColumns[j]];
                    }
                }
            }
            nodeStr = nodeStr + '</table>';
            return nodeStr;
        }
// To pretty print the node data as a IPython table
To pretty print the node data as a IPython table
To pretty print the node data as a IPython table
function printNodeData(nodeList) {
            var nodeStr = '<table><tr><td>name</td>';
            var numNodes = nodeList.length;
            for (var i = 0; i < metricColumns.length; i++) {
                nodeStr += '<td>' + metricColumns[i] + '</td>';
            }
            nodeStr += '</tr>';
            for (var i = 0; i < numNodes; i++) {
                for (var j = 0; j < metricColumns.length; j++) {
                    if (j == 0) {
                        nodeStr += '<tr><td>' + nodeList[i].data.frame.name + '</td><td>' + nodeList[i].data.metrics[metricColumns[j]] + '</td><td>';
                    }
                    else if (j == metricColumns.length - 1) {
                        nodeStr += nodeList[i].data.metrics[metricColumns[j]] + '</td></tr>';
                    }
                    else {
                        nodeStr += nodeList[i].data.metrics[metricColumns[j]];
                    }
                }
            }
            nodeStr = nodeStr + '</table>';
            return nodeStr;
        }
function printNodeData ( nodeList ) { var nodeStr = '<table><tr><td>name</td>' ; var numNodes = nodeList . length ; for ( var i = 0 ; i < metricColumns . length ; i ++ ) { nodeStr += '<td>' + metricColumns [ i ] + '</td>' ; } nodeStr += '</tr>' ; for ( var i = 0 ; i < numNodes ; i ++ ) { for ( var j = 0 ; j < metricColumns . length ; j ++ ) { if ( j == 0 ) { nodeStr += '<tr><td>' + nodeList [ i ] . data . frame . name + '</td><td>' + nodeList [ i ] . data . metrics [ metricColumns [ j ] ] + '</td><td>' ; } else if ( j == metricColumns . length - 1 ) { nodeStr += nodeList [ i ] . data . metrics [ metricColumns [ j ] ] + '</td></tr>' ; } else { nodeStr += nodeList [ i ] . data . metrics [ metricColumns [ j ] ] ; } } } nodeStr = nodeStr + '</table>' ; return nodeStr ; }
To pretty print the node data as a IPython table
To pretty print the node data as a IPython table
//lay the nodes out in a table