function [ Graph ] = getMatlabGraph( pointByPose, poseLength )
%GETMATLABGRAPH Summary of this function goes here
%   Detailed explanation goes here

    symMat = zeros(poseLength, poseLength);
    
    for i=1:length(pointByPose)
    
        combinations = combntns(pointByPose(i,:), 2);
        
        for c = 1:length(combinations)
           [c1,c2] = combinations(c,:);
           symMat(c1, c2) = symMat(c1, c2) + 1;
        end
        
    end
    
    % symming
    symMat = symMat + symMat';
    
    Graph = graph(symMat);

end


HuanYin94
github-repos/MATLAB/HuanYin94-map_compression/map_compression-3c126a5cc832bf51f0c313c6ad8aa58a2930312c/gurobi/before/graph_cut/matlab_cut_nouse/getMatlabGraph.m
map_compression
github-repos/MATLAB/HuanYin94-map_compression
3c126a5cc832bf51f0c313c6ad8aa58a2930312c