Home > Mateda2.0 > knowledge_extraction > visualization > SelectEdgesToShow.m

# SelectEdgesToShow

## PURPOSE

[sel_edges] = SelectEdgesToShow(run_structures,const_edg)

## SYNOPSIS

function[sel_edges] = SelectEdgesToShow(run_structures,const_edg)

## DESCRIPTION

     [sel_edges] = SelectEdgesToShow(run_structures,const_edg)
     SelectEdgesToShow:    From the set of all the structures learned in all
                           runs, extracts those edges (the indices) that were
                           learned at least const_edg times
     INPUT
     run_structures: Contain the data structures with all the structures
     learned by the probability models in every run and generation (see
     program ReadStructures.m for details.
     const_edg: Number of times that an edge has to be in the learned
     structures to be selected.
     OUTPUT
     sel_edges: Indices of the edges that will be extracted

     Last version 8/26/2008. Roberto Santana (roberto.santana@ehu.es)

## CROSS-REFERENCE INFORMATION

This function calls:

This function is called by:

- ViewDenDroStruct function[res_ordering] = ViewDenDroStruct(run_structures,viewparams)
- ViewPCStruct [res_ordering] = ViewPCStruct(run_structures,viewparams)

## SOURCE CODE

    0001 function[sel_edges] = SelectEdgesToShow(run_structures,const_edg)
    0002 % [sel_edges] = SelectEdgesToShow(run_structures,const_edg)
    0003 % SelectEdgesToShow:    From the set of all the structures learned in all
    0004 %                       runs, extracts those edges (the indices) that were
    0005 %                       learned at least const_edg times
    0006 % INPUT
    0007 % run_structures: Contain the data structures with all the structures
    0008 % learned by the probability models in every run and generation (see
    0009 % program ReadStructures.m for details.
    0010 % const_edg: Number of times that an edge has to be in the learned
    0011 % structures to be selected.
    0012 % OUTPUT
    0013 % sel_edges: Indices of the edges that will be extracted
    0014 %
    0015 % Last version 8/26/2008. Roberto Santana (roberto.santana@ehu.es)
    0016
    0017 AllSumMatrices = run_structures{3};
    0018
    0019 sel_edges = find(sum(AllSumMatrices')> const_edg);
    0020
    0021