How can I adjust the table caption left/right align with a table?

with help of floatrow:

enter image description here

\documentclass{svjour3}
\usepackage{booktabs}
\usepackage{floatrow}

\begin{document}
\begin{table}[htb]
\floatbox[{\capbeside\thisfloatsetup{capbesideposition={left,top},capbesidewidth=4cm}}]{table}[\FBwidth]
{\caption{A test figure with its caption side by side}\label{fig:test}}
{\begin{tabular}{ll}
    \toprule
Symbol          &   Definition          \\
    \midrule
$\mathcal{G}$   &   Graph               \\
$\mathcal{M}$   &   Adjacency matrix    \\
$N$             &   Vertices            \\
$E$             &   Edges               \\
    \bottomrule
 \end{tabular}}
\end{table}

or

\begin{table}[htb]
\floatbox[{\capbeside\thisfloatsetup{capbesideposition={right,top},capbesidewidth=4cm}}]{table}[\FBwidth]
{\caption{A test figure with its caption side by side}\label{fig:test}}
{\begin{tabular}{ll}
    \toprule
Symbol          &   Definition          \\
    \midrule
$\mathcal{G}$   &   Graph               \\
$\mathcal{M}$   &   Adjacency matrix    \\
$N$             &   Vertices            \\
$E$             &   Edges               \\
    \bottomrule
 \end{tabular}}
\end{table}

\end{document}

A solution that uses the sidecap package:

\documentclass{article}
\usepackage{tabularx,caption}
\usepackage[leftcaption]{sidecap}
\captionsetup{labelfont=bf, justification=raggedleft, singlelinecheck=false}

\begin{document}
\renewcommand{\sidecaptionsep}{1cm} % to be adjusted
\begin{SCtable}[][ht]
\caption{Definitions of symbols}
\label{Symbols}       % Give a unique label
\begin{tabular}{ll}
\hline\noalign{\smallskip}
    {Symbol} & {Definition} \\
\noalign{\smallskip}\hline\noalign{\smallskip}
    {$\mathcal{G}$} & Graph \\
    {$\mathcal{M}$} & Adjacency matrix \\
    {$N$} & Vertices \\
    {$E$} & Edges \\
\noalign{\smallskip}\hline
\end{tabular}
\end{SCtable} 

\end{document}

enter image description here